-
Notifications
You must be signed in to change notification settings - Fork 12
/
.travis.yml
58 lines (55 loc) · 2.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
language: python
python:
- "2.7"
- "3.5"
- "3.6"
notifications:
email:
on_failure: change
on_success: change
slack: astrochats:tV2KNwL9jXSGSv5KhulGNVro
git:
depth: 3
# 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 --system --set auto_update_conda false
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
install:
- conda config --add channels conda-forge
- conda install --yes python=$TRAVIS_PYTHON_VERSION scipy matplotlib astropy beautifulsoup4 bokeh gitpython palettable psutil seaborn tqdm coveralls
- xargs -L 1 pip install < requirements.txt
# Run test
script:
- coverage run -a -m astrocats setup
- echo "travis_fold:start:IMPORT Importing data"
# Run twice to test deleting old entries
- coverage run -a -m astrocats catalog import -v --min-task-priority test
- coverage run -a -m astrocats catalog import -a --task-groups meta
- coverage run -a -m astrocats catalog analyze -v --count
- echo "travis_fold:end:IMPORT Importing data done"
- echo "travis_fold:start:GIT checking git repos"
- coverage run -a -m astrocats catalog git-status
- coverage run -a -m astrocats catalog git-reset-local
- coverage run -a -m astrocats catalog git-status
- coverage run -a -m astrocats catalog git-reset-origin
- git config --global user.email "you@example.com"
- git config --global user.name "Your Name"
- coverage run -a -m astrocats catalog git-push --travis
- echo "travis_fold:end:GIT completed git checks"
# - echo "travis_fold:start:MAKE Making catalog"
# - cd astrocats/supernovae/scripts
# - python make-catalog.py -tr
# - echo "travis_fold:end:MAKE Making catalog done"
# Run coveralls
after_success:
- if [[ $TRAVIS_PYTHON_VERSION == 3.6 ]]; then coveralls; fi