Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setup ci: linux, mac-os and windows compile + run tests #39

Merged
merged 7 commits into from
Oct 7, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
85 changes: 85 additions & 0 deletions .travis.yml
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