forked from poliastro/poliastro
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
60 lines (47 loc) · 1.59 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
# The only current way of using OS X virtual machines in Travis CI
# is setting up a generic environment
# This is not a problem because Python will be installed through conda
language: generic
os:
- linux
- osx
env:
- PYTHON=3.5
- PYTHON=3.6
branches:
only:
- master
- 0.3.x
- 0.4.x
- 0.5.x
- 0.6.x
before_install:
- if [[ "$(uname)" == "Darwin" ]]; then wget http://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O miniconda.sh; fi
- if [[ "$(uname)" == "Linux" ]]; then wget http://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"
- export MPLBACKEND="agg"
# Update conda and create test environment
- conda config --set always_yes yes --set changeps1 no
- conda config --add channels conda-forge
- conda update -q conda
- conda create -q -n test-environment python=$PYTHON
- source activate test-environment
# Install problematic dependencies
- conda install pandoc
install:
- pip install numpy # Required
- pip install . # Test installation correctness
- pip install sphinx sphinx_rtd_theme nbsphinx ipython # Install documentation dependencies
script:
- python setup.py test -vv # Test against installed code
- sphinx-build -vW -b html docs/source _HTMLTest #Test docs build
after_success:
# Uninstall to test coverage against sources
- pip uninstall poliastro -y
- pip install -e .
- NUMBA_DISABLE_JIT=1 python setup.py test --cov
# Publish coverage
- pip install codecov
- codecov
sudo: false