-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.travis.yml
60 lines (59 loc) · 2 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
language: python
python:
- "3.6"
notifications:
email: false
git:
depth: 3
cache:
directories:
- $HOME/synphot
# Setup anaconda
before_install:
# Install packages
- if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
wget https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh -O miniconda.sh;
else
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
fi
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda;
- cp docs/env/condarc.example $HOME/.condarc
- if [[ ! -d "$HOME/synphot" ]]; then
mkdir $HOME/synphot;
fi
- if [[ ! -f "$HOME/synphot/synphot1.tar.gz" ]]; then
wget ftp://archive.stsci.edu/pub/hst/pysynphot/synphot1.tar.gz;
mv synphot1.tar.gz $HOME/synphot/;
fi
- if [[ ! -f "$HOME/synphot/synphot2.tar.gz" ]]; then
wget ftp://archive.stsci.edu/pub/hst/pysynphot/synphot2.tar.gz;
mv synphot2.tar.gz $HOME/synphot/;
fi
- if [[ ! -f "$HOME/synphot/synphot6.tar.gz" ]]; then
wget ftp://archive.stsci.edu/pub/hst/pysynphot/synphot6.tar.gz;
mv synphot6.tar.gz $HOME/synphot/;
fi
- tar -C $HOME -xzf $HOME/synphot/synphot1.tar.gz
- tar -C $HOME -xzf $HOME/synphot/synphot2.tar.gz
- tar -C $HOME -xzf $HOME/synphot/synphot6.tar.gz
- export PYSYN_CDBS=$HOME/grp/hst/cdbs/
install:
- conda update --yes setuptools
- conda install --yes python=$TRAVIS_PYTHON_VERSION
- conda install --yes coverage coveralls
- if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
conda install --yes --file dependencies_py27.txt;
else
conda install --yes --file dependencies_py36.txt;
fi
- python setup.py install
# Run tests
script:
- ./test.sh -c
# Run coveralls
after_success:
- if [[ $TRAVIS_PYTHON_VERSION == 3.6 ]]; then coveralls; fi