-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.travis.yml
70 lines (48 loc) · 1.86 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
language: python
sudo: false
env:
global:
ASTROPY=2.0.3
NUMPY=1.13.3
SCIPY=1.0.0
matrix:
include:
# Here you can add or remove specific builds, and Python versions. You
# should currently be able to use Python 2.6, 2.7, or 3.3 or later. The
# NUMPY and SCIPY versions are set here as an example, but you can
# add/remove environment variables, and use them below during the install.
- python: 2.7
# Try a few older versions for old python
- python: 2.7
env: NUMPY=1.10 SCIPY=0.17
- python: 2.7
env: NUMPY=1.9 SCIPY=0.17
- python: 2.7
env: NUMPY=1.10 SCIPY=0.16
- python: 3.5
- python: 3.6
before_install:
# Here we just install Miniconda, which you shouldn't have to change.
- 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:/home/travis/miniconda3/bin:$PATH
- conda update --yes conda
install:
# We just set up a conda environment with the right Python version. This
# should not need changing.
- conda create --yes -n test python=$TRAVIS_PYTHON_VERSION
- source activate test
# Below, include the dependencies you want to install with conda, optionally
# specifying versions used in the matrix above. If you split this into
# multiple conda install commands, you should always include numpy=$NUMPY as
# the first package to install (for every conda install command) otherwise
# numpy may be automatically upgraded.
- conda install --yes numpy=$NUMPY scipy=$SCIPY astropy=$ASTROPY nose
# You can also install some dependencies with pip if not available in conda
# - pip install ...
- pip install coveralls
script:
nosetests --with-coverage --cover-package=NFW.mass_concentration,NFW.nfw
after_success:
coveralls