-
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from ctreffs/feature/fix-ci
Fix ci
- Loading branch information
Showing
4 changed files
with
24 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,13 @@ | ||
os: | ||
- linux | ||
- osx | ||
language: generic | ||
sudo: required | ||
dist: trusty | ||
osx_image: xcode11 | ||
language: swift | ||
jobs: | ||
include: | ||
- os: linux | ||
dist: bionic | ||
language: generic | ||
- os: osx | ||
osx_image: xcode11.3 | ||
language: swift | ||
install: | ||
- eval "$(curl -sL https://swiftenv.fuller.li/install.sh)" | ||
script: | ||
- swift package reset | ||
- swift build | ||
- swift test | ||
env: | ||
- BADGE=linux | ||
- BADGE=osx | ||
# hack to get some OS-specific badges | ||
# see: https://github.com/travis-ci/travis-ci/issues/9579 | ||
matrix: | ||
exclude: | ||
- os: linux | ||
env: BADGE=osx | ||
- os: osx | ||
env: BADGE=linux | ||
- make runCI |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,20 @@ | ||
import ImGui | ||
import XCTest | ||
|
||
public final class ImGuiTests: XCTestCase { | ||
func testVersion() { | ||
final class ImGuiTests: XCTestCase { | ||
func testImGuiVersion() { | ||
XCTAssertNotNil(ImGuiGetVersion()) | ||
XCTAssertEqual(ImGuiGetVersion(), "1.74 WIP") | ||
IMGUI_CHECKVERSION() | ||
} | ||
|
||
func testCreateContext() { | ||
XCTAssertNotNil(ImGuiCreateContext(nil)) | ||
ImGuiDestroyContext(ImGuiGetCurrentContext()) | ||
} | ||
|
||
func testGetIO() { | ||
XCTAssertNotNil(ImGuiCreateContext(nil)) | ||
XCTAssertNotNil(ImGuiGetIO()) | ||
ImGuiDestroyContext(ImGuiGetCurrentContext()) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters