-
Notifications
You must be signed in to change notification settings - Fork 24
/
.travis.yml
48 lines (40 loc) · 1.05 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
language: generic
env:
global:
- PYTHONIOENCODING=UTF8
- MPLBACKEND=Agg
matrix:
include:
- os: linux
language: generic
env:
- PYTHON_VERSION=3.6
- CONDA=true
- os: linux
language: generic
env:
- PYTHON_VERSION=3.7
- CONDA=true
before_install:
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
- bash miniconda.sh -b -p $HOME/miniconda
- . $HOME/miniconda/etc/profile.d/conda.sh
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda # get latest conda version
- conda info -a # Useful for debugging any issues with conda
install:
- sed -i -e "s/- python=.*/- python=$PYTHON_VERSION/g" environment.yml
- conda env create -f environment.yml
- conda activate pyirf-dev
- pip install travis-sphinx codecov pytest-cov
- pip install .
- python --version
script:
- pytest --cov=pyirf
after_script:
- if [[ "$CONDA" == "true" ]];then
conda deactivate
fi
after_success:
- codecov