forked from samtools/bcftools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
51 lines (44 loc) · 1.43 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
# Control file for continuous integration testing at http://travis-ci.org/
language: c
matrix:
include:
- os: linux
compiler: clang
env: USE_CONFIG=no
- os: linux
compiler: gcc
env: USE_CONFIG=no
# An unoptimised C99 build, for detecting non-static inline functions
- os: linux
compiler: gcc
env: CFLAGS="-std=gnu99 -O0" USE_CONFIG=no
- os: osx
compiler: clang
env: USE_CONFIG=no
# Test the configure script
- os: linux
compiler: gcc
env: USE_CONFIG=yes
- os: osx
compiler: clang
env: USE_CONFIG=yes
env:
global:
- HTSDIR=./htslib
# For linux systems
addons:
apt:
packages:
- liblzma-dev
- libbz2-dev
- libgsl0-dev
# For MacOSX systems
before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install xz gsl ; fi
before_script:
# Clone samtools/htslib (or another repository, as specified by a Travis CI
# repository $HTSREPO setting) and check out a corresponding branch with the
# same name, if any, or otherwise the default branch.
- .travis/clone ${HTSREPO:-git://github.com/samtools/htslib.git} $HTSDIR $TRAVIS_BRANCH
script: if test "$USE_CONFIG" = "yes" ; then ( cd "$HTSDIR" && autoreconf ) && autoreconf && ./configure --enable-libgsl && make && make test ; else make plugindir=$TRAVIS_BUILD_DIR/plugins -e && make -e test-plugins ; fi