forked from samtools/htslib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
61 lines (49 loc) · 1.63 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
50
51
52
53
54
55
56
57
58
59
60
61
# Control file for continuous integration testing at http://travis-ci.org/
language: c
matrix:
include:
- compiler: gcc-8
os: linux
env: USE_CONFIG=yes CC=gcc-8 AR=gcc-ar-8
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-8
- compiler: gcc-8
os: linux
dist: xenial
env: USE_CONFIG=yes USE_LIBDEFLATE=yes CC=gcc-8 AR=gcc-ar-8
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-8
- compiler: clang
os: osx
env: USE_CONFIG=no
- compiler: clang
os: osx
env: USE_CONFIG=yes
- compiler: clang
os: osx
env: USE_CONFIG=yes USE_LIBDEFLATE=yes
- compiler: gcc
os: linux
env: USE_CONFIG=no
- compiler: gcc
os: linux
env: USE_CONFIG=yes
- compiler: clang
os: linux
env: USE_CONFIG=yes
# For MacOSX systems
before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" && "$USE_CONFIG" == "no" ]]; then HOMEBREW_NO_AUTO_UPDATE=1 brew install xz || ( brew update && brew install xz ); fi
before_script:
- if test "x$USE_LIBDEFLATE" == "xyes" ; then ( cd "$HOME" && git clone --depth 1 https://github.com/ebiggers/libdeflate.git && cd libdeflate && make -j 2 CFLAGS='-fPIC -O3' libdeflate.a ); fi
script:
- if test "x$USE_LIBDEFLATE" = "xyes" ; then CONFIG_OPTS='CPPFLAGS="-I$HOME/libdeflate" LDFLAGS="-L$HOME/libdeflate" --with-libdeflate' ; else CONFIG_OPTS='--without-libdeflate' ; fi
- if test "$USE_CONFIG" = "yes" ; then autoreconf && eval ./configure --enable-werror $CONFIG_OPTS CFLAGS=\"-g -O3\" || { cat config.log ; false ; } ; fi && make -j 2 -e && make test