forked from cta-observatory/pyirf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
65 lines (56 loc) · 2.15 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
61
62
63
64
65
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:
- travis_wait 15 ./download_test_data.sh
- 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
# cython needed for building gammapy
- pip install travis-sphinx codecov pytest-cov Cython
- pip install .[all]
- python --version
script:
- pytest --cov=pyirf --cov-report=xml
- travis-sphinx -v --outdir=docbuild build --source=docs/
after_script:
- if [[ "$CONDA" == "true" ]];then
conda deactivate
fi
after_success:
- codecov
- travis-sphinx -v --outdir=docbuild deploy
deploy:
provider: pypi
user: "__token__"
password:
secure: "ezivi6YVg1Mswz7fX8+XzRH5L15xIdpFFQlSoVMfUcF91ZtXdg6rJy44UjY32B856qQCuROx7+Q9oCh43BdJk/ssrZnR3YtAzIbqODvMI3DkS/sPl4cKgM5HQMRxuunjFjqdP+MWYY+yOp0EK7C/T86rJGOkClmYbSc4ohCaB/RnOs7uskCAG8EIipiHpZLQYwIz2AbbUGIZungYDDnHmncBKiZrD92I7iS/tAIy0NVq40cg7fv9EyLnGhTbpsQKB/4c+7vEHqFTYJLB42tCiASxq2Rg6cziGsbem2VkMAx1ddlJZuFvuUzGE0XC30hZuzaHU6lXBZKMO9BB2YR7tgv1uCJws4hV17owGUh3z7H9DUnWfBDHk+bz9bWS6M+HRdubEMYNDobDcRgxRYXw0jNKiUUYEwVB+3huMQkO/Qu5H8gXxm9Ac73aQe0tTD7tY/jOo4tLejLl3yynSGskZL8Q42FW0/MqcYfaqyAMErhMFBPa+EiI0/Sm2oVJBr9HcccsDZ0nBF4ShOAISofr8PNHUj+1BCq1jGYhXqjJLm1he4/KJWbn3IWCHW7DpCZTTy78UsHRl5NL0e4A93m25xcmhlRm7iVsfhyAKTGI7nz5K9SB1RL6wxFSGgcOu9aOB95fK9955bzrv6Vw5FGGgF3ysKM/PGcQ+Rj8By3CmdQ="
distributions: sdist
skip_existing: true
skip_cleanup: true
on:
tags: true
branch: master
condition: $PYTHON_VERSION = "3.7"