forked from pydicom/pynetdicom
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
46 lines (41 loc) · 1.54 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
dist: xenial
language: python
# Build against pydicom master and current release
matrix:
include:
- name: "Python 2.7, pydicom master"
python: "2.7"
env: TEST_SUITE=pydicom_master
- name: "Python 3.5, pydicom master"
python: "3.5"
env: TEST_SUITE=pydicom_master
- name: "Python 3.6, pydicom master"
python: "3.6"
env: TEST_SUITE=pydicom_master
- name: "Python 3.7, pydicom master"
python: "3.7"
env: TEST_SUITE=pydicom_master
- name: "Python 2.7, pydicom release"
python: "2.7"
env: TEST_SUITE=pydicom_release
- name: "Python 3.5, pydicom release"
python: "3.5"
env: TEST_SUITE=pydicom_release
- name: "Python 3.6, pydicom release"
python: "3.6"
env: TEST_SUITE=pydicom_release
- name: "Python 3.7, pydicom release"
python: "3.7"
env: TEST_SUITE=pydicom_release
# Install dependencies and pynetdicom
install: source build_tools/travis/install.sh
# Command to run tests
script:
- pytest --cov=pynetdicom --pyargs pynetdicom --ignore=pydicom-master,pydicom
after_success:
# Upload coverage results to codecov.io
# curl times out sometimes, so drop the connection timeout but retry more often
- bash <(curl --connect-timeout 10 --retry 10 --retry-max-time 0 https://codecov.io/bash) ||
(sleep 30 && bash <(curl --connect-timeout 10 --retry 10 --retry-max-time 0 https://codecov.io/bash))
notifications:
email: false