forked from samtools/samtools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
65 lines (58 loc) · 1.82 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
62
63
64
65
# Control file for continuous integration testing at http://travis-ci.org/
language: c
matrix:
include:
# An optimised build with address, leak and undefined behavior checking
- os: linux
compiler: clang
sudo: required
env: CFLAGS="-fsanitize=address" LDFLAGS="-fsanitize=address"
- os: linux
compiler: gcc-8
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-8
env:
- CC=gcc-8
- AR=gcc-ar-8
# An unoptimised C99 build, for detecting non-static inline functions
- os: linux
compiler: gcc-8
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-8
env:
- CC=gcc-8
- AR=gcc-ar-8
- CFLAGS="-std=gnu99 -O0"
- os: osx
compiler: clang
- os: linux
compiler: gcc
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: autoreconf -i && (./configure || (cat config.log; /bin/false)) && make -e && make -e test