forked from poliastro/poliastro
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
53 lines (40 loc) · 1.44 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
# 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.4
- PYTHON=3.5
branches:
only:
- master
- 0.3.x
- 0.4.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"
# Update conda and create test environment
- conda config --set always_yes yes --set changeps1 no
- conda config --add channels poliastro
- conda update -q conda
- conda create -q -n test-environment python=$PYTHON
- source activate test-environment
# Install project requirements
- conda install numpy numba>=0.23 astropy>=1.0 matplotlib scipy jplephem
- pip install coverage pytest pytest-cov codecov pytest-benchmark
install:
- pip install --no-deps . # Test installation correctness
script:
- py.test -vv --benchmark-skip # Test against installed code
after_success:
# Uninstall to test coverage against sources
- pip uninstall poliastro -y
- pip install --no-deps -e .
- NUMBA_DISABLE_JIT=1 py.test --cov --benchmark-skip
- codecov
sudo: false