-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
39 lines (35 loc) · 1.29 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
language: python
sudo: false
matrix:
include:
- python: "2.7"
env: DEPS="numpy scipy astropy=1.0" COVERAGE=true
before_install:
- >
if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ];
then wget https://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh;
else wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh -O miniconda.sh;
fi
- chmod +x miniconda.sh
- ./miniconda.sh -b -p /home/travis/mc
- export PATH=/home/travis/mc/bin:$PATH
install:
# See:
# https://groups.google.com/a/continuum.io/forum/#!topic/conda/RSFENqovnro
# - conda update --yes --no-deps conda
# OK, this used to *fix* the build, but now it *breaks* the build.
# If you're reading this, good luck out there. I'm not sure what to tell you.
- conda update --yes conda
- >
conda create -n testenv --yes python=$TRAVIS_PYTHON_VERSION
$DEPS pip pytest setuptools
- source activate testenv
- pip install pyephem
- if [[ $COVERAGE == true ]]; then pip install coveralls; fi
# Build in place so we can run tests
- python setup.py build_ext --inplace
script:
- py.test -s -v pyasb
- if [[ $COVERAGE == true ]]; then coverage run --source pyasb -m py.test; fi
after_success:
- if [[ $COVERAGE == true ]]; then coveralls; fi