forked from samtools/samtools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
77 lines (71 loc) · 2.09 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
66
67
68
69
70
71
72
73
74
75
76
77
# Control file for continuous integration testing at http://travis-ci.org/
language: c
matrix:
include:
# An optimised build with address and leak checking
- os: linux
compiler: clang
sudo: required
env: CFLAGS="-g -Wall -O3 -fsanitize=address" LDFLAGS="-fsanitize=address -Wl,-rpath,`pwd`/inst/lib"
- 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"
- DO_MAINTAINER_CHECKS=yes
- os: osx
compiler: clang
- os: linux
compiler: gcc
env:
global:
- HTSDIR=./hidden-htslib
# For linux systems
addons:
apt:
packages:
- liblzma-dev
- libbz2-dev
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 && \
(cd $HTSDIR && \
autoreconf -i && \
./configure --prefix=`pwd`/../inst && \
make -e install \
) && \
(./configure --enable-werror --with-htslib=`pwd`/inst LDFLAGS="$LDFLAGS -Wl,-rpath,`pwd`/inst/lib" || \
(cat config.log; /bin/false) \
) && \
if test "x$DO_MAINTAINER_CHECKS" = "xyes" ; then
make -e maintainer-check
fi && \
make -e && \
make -e test BGZIP=inst/bin/bgzip