forked from sustrik/libmill
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
49 lines (39 loc) · 1.09 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
language: c
sudo: false
os:
- osx
- linux
compiler:
- gcc
- clang
env:
matrix:
- CONF="autotools-shared"
- CONF="autotools-static"
- CONF="autotools-shared-poll"
- CONF="cmake-shared"
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-4.8
- clang
branches:
only:
- master
install:
- if [[ $CONF == "autotools-shared" ]]; then ./autogen.sh && ./configure && make; fi
- if [[ $CONF == "autotools-static" ]]; then ./autogen.sh && ./configure --disable-shared && make; fi
- if [[ $CONF == "autotools-shared-poll" ]]; then ./autogen.sh && ./configure CFLAGS=-DMILL_POLL && make; fi
- if [[ $CONF == "cmake-shared" ]]; then cmake . && make; fi
script:
- if [[ $CONF == "autotools-shared" ]]; then make check; fi
- if [[ $CONF == "autotools-static" ]]; then make check; fi
- if [[ $CONF == "autotools-shared-poll" ]]; then make check; fi
- if [[ $CONF == "cmake-shared" ]]; then make test; fi
after_failure:
- for f in tests/*.log; do echo; echo "${f}:"; cat $f; done;
- cat test-suite.log
notifications:
email: false