-
Notifications
You must be signed in to change notification settings - Fork 12
/
.travis.yml
48 lines (43 loc) · 1.17 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
language: python
python:
- "2.6"
- "2.7"
- "3.2"
- "3.3"
matrix:
include:
- python: 2.7
env: EXAMPLES=true
- python: 3.4
env: EXAMPLES=true
- python: 3.4
env: NOSE_WITH_COVERAGE=y NOSE_COVER_PACKAGE=rsfmodel
before_install:
- wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh
- chmod +x miniconda.sh
- ./miniconda.sh -b -p $HOME/miniconda
- export PATH=/home/travis/miniconda/bin:$PATH
- conda update --yes conda
- if [[ $TRAVIS_PYTHON_VERSION == "3.2" ]]; then
conda config --add channels https://conda.binstar.org/astropy-ci-extras;
fi;
- conda create -n Travis --yes python=$TRAVIS_PYTHON_VERSION numpy scipy matplotlib nose
- source activate Travis
- if [[ $NOSE_WITH_COVERAGE == y ]]; then
conda install --yes coverage;
fi;
install:
- python setup.py install
script:
- if [[ $EXAMPLES == true ]]; then
cd examples;
echo backend:agg > matplotlibrc;
MPLBACKEND='agg' python test_examples.py;
else
nosetests;
fi
after_success:
- if [[ $NOSE_WITH_COVERAGE == y ]]; then
pip install coveralls;
coveralls;
fi;