-
Notifications
You must be signed in to change notification settings - Fork 35
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 #39 from dengwirda/dev
setup ci: linux, mac-os and windows compile + run tests
- Loading branch information
Showing
1 changed file
with
85 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,85 @@ | ||
language: cpp | ||
matrix: | ||
include: | ||
- os: linux | ||
addons: | ||
apt: | ||
sources: | ||
- ubuntu-toolchain-r-test | ||
packages: | ||
- gcc-8 | ||
- g++-8 | ||
script: | ||
- export CC=gcc-8 | ||
- export CXX=g++-8 | ||
- mkdir build | ||
- cd build | ||
- cmake .. -DCMAKE_BUILD_TYPE=Release | ||
- cmake --build . --config Release --target install | ||
- cd .. | ||
- ./bin/jigsaw example.jig | ||
- cd uni | ||
- mkdir build | ||
- cd build | ||
- cmake .. -DCMAKE_BUILD_TYPE=Debug | ||
- cmake --build . --config Debug --target install | ||
- cd .. | ||
- ./test_1 | ||
- ./test_2 | ||
- ./test_3 | ||
- ./test_4 | ||
- ./test_5 | ||
- ./test_6 | ||
- ./test_7 | ||
- ./test_8 | ||
- ./test_9 | ||
|
||
- os: osx | ||
osx_image: xcode11 | ||
script: | ||
- mkdir build | ||
- cd build | ||
- cmake .. -DCMAKE_BUILD_TYPE=Release | ||
- cmake --build . --config Release --target install | ||
- cd .. | ||
- ./bin/jigsaw example.jig | ||
- cd uni | ||
- mkdir build | ||
- cd build | ||
- cmake .. -DCMAKE_BUILD_TYPE=Debug | ||
- cmake --build . --config Debug --target install | ||
- cd .. | ||
- ./test_1 | ||
- ./test_2 | ||
- ./test_3 | ||
- ./test_4 | ||
- ./test_5 | ||
- ./test_6 | ||
- ./test_7 | ||
- ./test_8 | ||
- ./test_9 | ||
|
||
- os: windows | ||
script: | ||
- mkdir build | ||
- cd build | ||
- cmake .. -DCMAKE_BUILD_TYPE=Release | ||
- cmake --build . --config Release --target install | ||
- cd .. | ||
- ./bin/jigsaw.exe example.jig | ||
- cp lib/jigsaw.dll uni | ||
- cd uni | ||
- mkdir build | ||
- cd build | ||
- cmake .. -DCMAKE_BUILD_TYPE=Debug | ||
- cmake --build . --config Debug --target install | ||
- cd .. | ||
- ./test_1.exe | ||
- ./test_2.exe | ||
- ./test_3.exe | ||
- ./test_4.exe | ||
- ./test_5.exe | ||
- ./test_6.exe | ||
- ./test_7.exe | ||
- ./test_8.exe | ||
- ./test_9.exe |