-
Notifications
You must be signed in to change notification settings - Fork 22
/
.travis.yml
53 lines (51 loc) · 2.5 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
# Check on http://lint.travis-ci.org/ after modifying it!
# sudo: required
language: c
os:
- linux
- osx
env:
matrix:
- CONDA_PY=37
- CONDA_PY=38
global:
- secure: "e/VyjGTs9HZGnu+q9ysnOsoUWdokawJGVoiFzFNJCxMgRguihAiJBEpEd1bcitI+y9/RRh+LU8LJWVVSDnQgZ3Z5Xd++xKS0z4O9Jo8zw3t8jcGQvS3BjIufyIirEJvhmz0l9ywPzBTxNMCi3N6PIDl6TZhu3UmURXOWdGFutUCcVPcJisTiNG2Pq2LIUxUSk66MqZGWGkrCpzZ0UXmzMwWx+AhR14uuROBhB8WFkIaUEVDmBmMwDnGZBRXO/joTKrHXNPo+jjXG81VuXn/joN7dWz07ghDNBlaKl/zLPhElcqOY7F/VklpUZRbxvHY/8N3k/BGQ+wFq19jEBVqWJbNFu8ObEW8gW2gcCdzQW8qJzMG2iFiFlXLchpz47WNDmDY77/kMor9Rv8amk3tR2GUOrixE+THfptFsj5hHn33wRp/Ve5gdOAplg66yaWLRdjpF6E0QPZ3Yb6Msdp6olgC37P2KlqhZQJ0Gy9xEfqScLYEDZlh0DBVpr/mpm85dNNeGwnvbUdGTP9Oev8+RN9v4CkfU8RcYfe+aw/hcPAzXW6fMiCZSql8E+21PBhKxsfGMuObxCiA5nHhGZITTEZ/rFseboPgiMe+Py5c9IsUNnjRFT/nVqiOQ4eFi1qvBgOXVMXrHtN0UwAz+wpbURqCk8WV/Huf78weXnijSqyk="
services:
- xvfb
before_install:
- echo "$TRAVIS_OS_NAME"
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then wget https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O miniconda.sh; fi
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda config --add channels conda-forge
- conda config --add channels bioconda
# Update conda itself
- conda update -q conda
# Useful for debugging any issues with conda
- conda info -a
# xvfb is required to test plot and gui for linux
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install -y xvfb; fi
install:
- conda create --yes -n calour
- source activate calour
- conda install --yes --file ci/conda_requirements.txt
- pip install -r ci/pip_requirements.txt
- pip install . --no-deps
before_script:
- export DISPLAY=:99.0
# changed xvfb init to services section (see https://benlimmer.com/2019/01/14/travis-ci-xvfb/)
# - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sh -e /etc/init.d/xvfb start; fi
script:
- export MPLBACKEND="agg"
- WITH_COVERAGE=TRUE make all
notifications:
webhooks:
on_success: change
on_failure: always
after_success:
- coveralls
# only publish the documentation for master branch when you put "[publish doc]" in the PR merge msg to trigger publish
- if [[ $TRAVIS_BRANCH == "master" && $TRAVIS_COMMIT_MESSAGE == *"[publish doc]"* ]] ; then MSG="commit $TRAVIS_COMMIT" make publish ; fi