forked from lsst/scarlet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
42 lines (37 loc) · 982 Bytes
/
.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
language: python
python:
- 3.6
notifications:
email: false
# Setup anaconda
before_install:
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
- chmod +x miniconda.sh
- ./miniconda.sh -b -p $HOME/miniconda
- export PATH=/$HOME/miniconda/bin:$PATH
- conda update --yes conda
# Install packages
install:
# Useful for debugging any issues with conda
- conda info -a
# Coverage packages
- conda install --yes python=$TRAVIS_PYTHON_VERSION numpy scipy astropy pybind11 numpydoc jupyter
- pip install -r docs/rtd-pip-requirements
- python setup.py install
# Run test
script:
- pytest tests
# Calculate coverage
#after_success:
# - coveralls --config_file .coveragerc
# deploy to github pages
before_deploy:
- cd docs && make html && touch _build/html/.nojekyll && cd ..
deploy:
provider: pages:git
cleanup: false
token: $github_token
local_dir: docs/_build/html/
edge: true
on:
branch: master