Skip to content

Commit e848583

Browse files
authored
Merge pull request #39 from dengwirda/dev
setup ci: linux, mac-os and windows compile + run tests
2 parents 9ae99ea + 68d5cf4 commit e848583

File tree

1 file changed

+85
-0
lines changed

1 file changed

+85
-0
lines changed

.travis.yml

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
language: cpp
2+
matrix:
3+
include:
4+
- os: linux
5+
addons:
6+
apt:
7+
sources:
8+
- ubuntu-toolchain-r-test
9+
packages:
10+
- gcc-8
11+
- g++-8
12+
script:
13+
- export CC=gcc-8
14+
- export CXX=g++-8
15+
- mkdir build
16+
- cd build
17+
- cmake .. -DCMAKE_BUILD_TYPE=Release
18+
- cmake --build . --config Release --target install
19+
- cd ..
20+
- ./bin/jigsaw example.jig
21+
- cd uni
22+
- mkdir build
23+
- cd build
24+
- cmake .. -DCMAKE_BUILD_TYPE=Debug
25+
- cmake --build . --config Debug --target install
26+
- cd ..
27+
- ./test_1
28+
- ./test_2
29+
- ./test_3
30+
- ./test_4
31+
- ./test_5
32+
- ./test_6
33+
- ./test_7
34+
- ./test_8
35+
- ./test_9
36+
37+
- os: osx
38+
osx_image: xcode11
39+
script:
40+
- mkdir build
41+
- cd build
42+
- cmake .. -DCMAKE_BUILD_TYPE=Release
43+
- cmake --build . --config Release --target install
44+
- cd ..
45+
- ./bin/jigsaw example.jig
46+
- cd uni
47+
- mkdir build
48+
- cd build
49+
- cmake .. -DCMAKE_BUILD_TYPE=Debug
50+
- cmake --build . --config Debug --target install
51+
- cd ..
52+
- ./test_1
53+
- ./test_2
54+
- ./test_3
55+
- ./test_4
56+
- ./test_5
57+
- ./test_6
58+
- ./test_7
59+
- ./test_8
60+
- ./test_9
61+
62+
- os: windows
63+
script:
64+
- mkdir build
65+
- cd build
66+
- cmake .. -DCMAKE_BUILD_TYPE=Release
67+
- cmake --build . --config Release --target install
68+
- cd ..
69+
- ./bin/jigsaw.exe example.jig
70+
- cp lib/jigsaw.dll uni
71+
- cd uni
72+
- mkdir build
73+
- cd build
74+
- cmake .. -DCMAKE_BUILD_TYPE=Debug
75+
- cmake --build . --config Debug --target install
76+
- cd ..
77+
- ./test_1.exe
78+
- ./test_2.exe
79+
- ./test_3.exe
80+
- ./test_4.exe
81+
- ./test_5.exe
82+
- ./test_6.exe
83+
- ./test_7.exe
84+
- ./test_8.exe
85+
- ./test_9.exe

0 commit comments

Comments
 (0)