forked from jobovy/extreme-deconvolution
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
51 lines (51 loc) · 1.67 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
language: c
compiler:
- gcc
- clang
env:
matrix:
- TRAVIS_PYTHON_VERSION=2.7
- TRAVIS_PYTHON_VERSION=3.5
addons:
apt:
packages:
- libgsl0-dev
before_install:
# Install lcov
- wget http://ftp.de.debian.org/debian/pool/main/l/lcov/lcov_1.11.orig.tar.gz
- tar xf lcov_1.11.orig.tar.gz
- mkdir $HOME/usr
- export PATH=$HOME/usr/bin:$PATH
- make -C lcov-1.11/ install PREFIX=$HOME
#Setup conda for faster installs
- wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh
- 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 update -q conda
- conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION numpy scipy matplotlib setuptools pip pytest
- source activate test-environment
- pip install 'coverage==4.1' --force-reinstall # necessary bc of backward incompatible change in 4.2 about combining reports
- pip install pytest-cov
- easy_install --upgrade requests
install:
- make COVERAGE=1
- sudo make install
- make pywrapper
- export PYTHONPATH=$PYTHONPATH:$PWD/py
- cd tests/
script:
- pytest -v test_oned.py test_twod.py test_fix.py test_log.py --cov=extreme_deconvolution --cov-config ../.coveragerc_travis
after_success:
# Codecov
# Generate lcov output
- lcov --capture --directory $HOME/build/jobovy/extreme-deconvolution/src/ --no-external --output-file coverage.info
# Codecov
- if [[ $TRAVIS_PYTHON_VERSION == '2.7' && $CC == 'gcc' ]]; then bash <(curl -s https://codecov.io/bash); fi
notifications:
email:
recipients:
on_success: change
on_failure: change