-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
64 lines (51 loc) · 2.21 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
language: python
env:
global:
# Set defaults to avoid repeating in most cases
- NUMPY_VERSION=1.11
matrix:
include:
# Try all python versions with the latest numpy
- python: 2.7
env: CMD='nosetests --with-answer-testing --local --local-dir . --answer-name=pyxsim11_2 pyxsim/tests'; PYTHON='python'
env: CMD='nosetests --with-answer-testing --local --local-dir . --answer-name=pyxsim11_2 pyxsim/tests'; PYTHON='python'
- python: 3.5
env: CMD='nosetests --with-answer-testing --local --local-dir . --answer-name=pyxsim11_3 pyxsim/tests --with-coverage --cover-package=pyxsim'; PYTHON='python3'
- python: 3.6
env: CMD='nosetests --with-answer-testing --local --local-dir . --answer-name=pyxsim11_3 pyxsim/tests'; PYTHON='python3'
before_install:
# - wget http://yt-project.org/data/GasSloshingLowRes.tar.gz
# - tar -zxvf GasSloshingLowRes.tar.gz
# - wget http://hea-www.cfa.harvard.edu/~jzuhone/pyxsim11_2.tar.gz
# - tar -zxvf pyxsim11_2.tar.gz
# - wget http://hea-www.cfa.harvard.edu/~jzuhone/pyxsim11_3.tar.gz
# - tar -zxvf pyxsim11_3.tar.gz
# - mkdir ~/.yt
# - printf "[yt]\ntest_data_dir = $PWD" >> ~/.yt/config
# # Use utf8 encoding. Should be default, but this is insurance against
# # future changes
# - export PYTHONIOENCODING=UTF8
# - wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh
# - chmod +x miniconda.sh
# - ./miniconda.sh -b
# - export PATH=/home/travis/miniconda2/bin:$PATH
# - conda update --yes conda
# UPDATE APT-GET LISTINGS
- sudo apt-get update
install:
# CONDA
- conda create --yes -n test python=$TRAVIS_PYTHON_VERSION
- source activate test
# CORE DEPENDENCIES
# - conda config --add channels https://conda.anaconda.org/sherpa
# - conda config --add channels conda-forge
- conda install --yes numpy=$NUMPY_VERSION nose pip yt astropy # sherpa cython
# COVERAGE DEPENDENCIES
- pip install coverage coveralls
- $PYTHON setup.py develop
script:
- $CMD
after_success:
- if [[ $PYTHON == 'python3' ]]; then
coveralls --rcfile='pyxsim/tests/coveragerc';
fi