Skip to content

Commit b5352a5

Browse files
committed
add .travis.yml
1 parent cb3ed69 commit b5352a5

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
*.out
1111
*.l[ao]
1212
/.libs
13+
test_*.txt
1314

1415
test
1516
test.exe

.travis.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
language: c
2+
compiler:
3+
- gcc
4+
script: CC="${MYCC}" make test >test_gcc_1.txt 2>test_gcc_2.txt && ./test >test_std.txt 2>test_err.txt
5+
env:
6+
- MYCC="gcc"
7+
- MYCC="gcc -m32"
8+
- MYCC="gcc-4.8"
9+
- MYCC="gcc-4.8 -m32"
10+
matrix:
11+
fast_finish: true
12+
before_script:
13+
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
14+
- sudo apt-get -qq update
15+
- sudo apt-get install gcc-4.8-multilib gcc-multilib build-essential
16+
after_failure:
17+
- cat test_gcc_1.txt
18+
- cat test_std.txt
19+
- cat test_err.txt
20+
after_script:
21+
- cat test_gcc_2.txt
22+
notifications:
23+
irc: "chat.freenode.net#libtom"
24+

0 commit comments

Comments
 (0)