Skip to content

Commit

Permalink
Merge pull request #39 from dengwirda/dev
Browse files Browse the repository at this point in the history
setup ci: linux, mac-os and windows compile + run tests
  • Loading branch information
dengwirda authored Oct 7, 2020
2 parents 9ae99ea + 68d5cf4 commit e848583
Showing 1 changed file with 85 additions and 0 deletions.
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

0 comments on commit e848583

Please sign in to comment.