forked from cta-observatory/cta-lstchain
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
81 lines (67 loc) · 2.64 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
---
language: python
env:
global:
- PYTHONIOENCODING=UTF8
- MPLBACKEND=Agg
- PYTEST_ADDOPTS='--color=yes'
matrix:
include:
- name: "python=3.6, ctapipe=0.7"
python: 3.6
env:
- CTAPIPE_VERSION="v0.7.0"
- CTAPIPE_IO_LST_VERSION="v0.4.1"
- name: "python=3.7, ctapipe=0.7"
python: 3.7
env:
- CTAPIPE_VERSION="v0.7.0"
- CTAPIPE_IO_LST_VERSION="v0.4.1"
- name: "python=3.6, ctapipe=master"
python: 3.6
env:
- CTAPIPE_VERSION="master"
- CTAPIPE_IO_LST_VERSION="master"
- name: "python=3.7, ctapipe=master"
python: 3.7
env:
- CTAPIPE_VERSION="master"
- CTAPIPE_IO_LST_VERSION="master"
allow_failures:
- name: "python=3.6, ctapipe=master"
- name: "python=3.7, ctapipe=master"
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=$TRAVIS_PYTHON_VERSION/g" environment.yml
- conda env create --file environment.yml
- conda activate lst-dev
- python --version
- |
pip install \
https://github.com/cta-observatory/ctapipe/archive/$CTAPIPE_VERSION.tar.gz \
https://github.com/cta-observatory/ctapipe_io_lst/archive/$CTAPIPE_IO_LST_VERSION.tar.gz \
pytest-cov codecov
- pip install .
script:
- pytest --cov lstchain --cov-report=xml lstchain
after_success:
- codecov
deploy:
provider: pypi
user: "__token__"
password:
secure: "UHZE1CjUCAkkYB8UTFYuXZ3d+bY7Ney5myLJGbSFGMnCGOix8sCO4bkvN9JMMeCHQX1C+nIe/pck8e2C5240juRp/H88vABxhkA0l05X7o+9jGmaVNITxPoFrdwoQ2GSk9DnCEmOn4/CBMXU9maFdQ3NC7uImD/d9NgdGweSdZWJVrV9ZuCZ3E1FOONgTeAIl2wT6R2G95LIRuf1EZfvBdXCmQNbm/06ZiJy7BjMqJPpH7rJD06bxm7vPPTcMvvEh6CUh2IxmNFA7Lh6KjrYH7YhwKqWqoBEkIeiTqpMyBTNKvLbsu9jlh9WDhtIGSX1Wup0Fd/WLfX8xqEq84XSqERiKK8cuNhkztHanWza0sz+kZLPZjqLkERpkzXZCNO0d4eNkcVzSYMdu1YgjosAKB/+mqSCKpOwGMTca+rKLhcWAQCLZrI+txlIKgabcoCpRcs7qB0DUXlRJ80Dg5bt3thgZ2j11yTF14dOOk/EhJdvPM4qFCN2x/lQkwkj6549qOuQKD2gSlqFM8F3W0vKc88ys+hPVe7sszLbxv+h7XyEFYqo6/6ItCxZ0+t1jyv8d59425yCz9U5n7X8N83LBomkO7VvCo2G4YFI4r+lyEJ7VjwGcUacC1w6Bs8oCTT8QYQeFR7YxIL2w+CEd5NMInJMfpiDbpuwSTUTb3UVNpA="
distributions: sdist
skip_existing: true
skip_cleanup: true
on:
tags: true
branch: master
condition: $TRAVIS_PYTHON_VERSION = "3.7"