-
Notifications
You must be signed in to change notification settings - Fork 39
/
.travis.yml
31 lines (30 loc) · 1.04 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
sudo: required
dist: bionic
language: cpp
before_install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get -qq update; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install -y libhdf5-serial-dev python3 python3-pip libpython3-dev; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then HOMEBREW_NO_AUTO_UPDATE=1 brew install hdf5 python3 python3-pip || echo "a brew error code when installing gcc is expected"; fi
- git clone https://github.com/ComparativeGenomicsToolkit/sonLib.git
install:
- sudo pip3 install setuptools --upgrade
- pip3 install -r requirements.txt
- sh -c 'cd sonLib && make'
script:
- alias python=python3
- alias pip=pip3
- export sonLibRootDir=`pwd`/sonLib
- make -j 4
- PYTHONPATH=..:.:$PYTHONPATH PATH=./bin:$PATH make -k test
os:
- linux
- osx
env:
- CGL_DEBUG=1
- CGL_DEBUG=ultra ASAN_OPTIONS=detect_leaks=0
matrix:
exclude:
# The default OSX env doesn't have a version that supports
# -fsanitize=address.
- env: CGL_DEBUG=ultra ASAN_OPTIONS=detect_leaks=0
os: osx