forked from mellowcandle/bitwise
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
34 lines (25 loc) · 1012 Bytes
/
.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
language: c
compiler: gcc
os:
- linux
- osx
arch:
- AMD64
- ppc64le
before_install:
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get -qq update ; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get install libcunit1-dev ; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew install readline; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew install cunit; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then export LDFLAGS="-L/usr/local/opt/readline/lib"; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then export CPPFLAGS="-I/usr/local/opt/readline/include"; fi
script:
- "./bootstrap.sh"
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then ./configure --enable-gcov; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then make check; fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then ./configure; fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then make check; fi
after_success:
- bash <(curl -s https://codecov.io/bash)
after_failure:
- if [ -f ./test-suite.log ]; then cat ./test-suite.log; fi