forked from sherpa-deproject/deproject
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
42 lines (33 loc) · 924 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
# Based on
# https://github.com/astrofrog/example-travis-conda/blob/master/.travis.yml
# but all problems are mine
#
dist: xenial
language: python
matrix:
include:
- python: 3.7
env: NUMPY=1.18
before_install:
- wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda3.sh
- chmod +x miniconda3.sh
- ./miniconda3.sh -b -p /home/travis/miniconda
- export PATH=/home/travis/miniconda/bin:$PATH
- conda update --yes conda
# DEBUG information
- conda info -a
- python --version
install:
- conda create --yes -n test python=$TRAVIS_PYTHON_VERSION
# - conda activate test
- source activate test
- conda install --yes numpy=$NUMPY pytest
- conda install --yes -c sherpa sherpa
- pip install pytest-cov
- pip install codecov
# I guess we should actually install the software!
- pip install .
script:
- py.test --cov
after_success:
- codecov