forked from samtools/samtools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
42 lines (35 loc) · 1.22 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
# Control file for continuous integration testing at http://travis-ci.org/
language: c
matrix:
include:
- os: linux
compiler: clang
- os: linux
compiler: gcc
# An unoptimised C99 build, for detecting non-static inline functions
- os: linux
compiler: gcc
env: CFLAGS="-std=gnu99 -O0"
- os: osx
compiler: clang
env:
global:
- HTSDIR=./htslib
# For linux systems
addons:
apt:
packages:
- liblzma-dev
- libbz2-dev
# For MacOSX systems
before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then HOMEBREW_NO_AUTO_UPDATE=1 brew install xz || ( brew update && brew install xz ); fi
before_script:
# Clone htslib, trying the same branch name in the owners' copy of htslib.
# If this exists then the user is likely making a joint PR to htslib and
# samtools and we want to validate this PR works in the context of their
# htslib. If not, then we need to test this PR against the upstream
# develop htslib as this is what we'll be linking against once merged.
# Logic for choosing which to use is in the .travis/clone script.
- .travis/clone "git://github.com/$(dirname $TRAVIS_REPO_SLUG)/htslib.git" "$HTSDIR" "$TRAVIS_BRANCH"
script: make -e && make -e test