Skip to content

Commit f66fa9f

Browse files
committed
MAINT: tweak travis build script
1 parent 5e042ed commit f66fa9f

File tree

2 files changed

+21
-15
lines changed

2 files changed

+21
-15
lines changed

.travis.yml

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,26 @@ python:
1111
- 3.5
1212

1313
env:
14-
- CONDA_DEPS="numpy scipy nose pip scikit-learn" PIP_DEPS="supersmoother astroML astroML_addons"
14+
global:
15+
- TEST_DIR=/tmp/megaman
16+
- CONDA_DEPS="numpy scipy nose pip scikit-learn"
17+
- PIP_DEPS="supersmoother astroML astroML_addons"
18+
19+
before_install:
20+
- export MINICONDA=$HOME/miniconda
21+
- export PATH="$MINICONDA/bin:$PATH"
22+
- hash -r
23+
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
24+
- bash miniconda.sh -b -f -p $MINICONDA
25+
- conda config --set always_yes yes
26+
- conda update conda
27+
- conda info -a
28+
- conda install python=$TRAVIS_PYTHON_VERSION $CONDA_DEPS
29+
- travis_retry pip install $PIP_DEPS
1530

1631
install:
17-
- conda create -n testenv --yes python=$TRAVIS_PYTHON_VERSION
18-
- source activate testenv
19-
- conda install --yes $CONDA_DEPS
20-
- pip install $PIP_DEPS
2132
- python setup.py install
2233

23-
before_install:
24-
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
25-
- chmod +x miniconda.sh
26-
- ./miniconda.sh -b
27-
- export PATH=/home/travis/miniconda3/bin:$PATH
28-
# miniconda is not always up-to-date with conda.
29-
- conda update --yes conda
30-
3134
script:
32-
- nosetests --with-doctest gatspy
35+
- mkdir -p $TEST_DIR
36+
- cd $TEST_DIR && nosetests -v --with-doctest --with-coverage --cover-package=gatspy gatspy

MANIFEST.in

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
include *.md
22
include *.py
33
recursive-include gatspy *.py
4+
recursive-include doc *
5+
recursive-include examples *.ipynb
46
include LICENSE
5-
include Makefile
7+
include Makefile

0 commit comments

Comments
 (0)