|
| 1 | +branches: |
| 2 | + only: |
| 3 | + - "master" |
| 4 | + |
| 5 | +language: python |
| 6 | + |
| 7 | +# Build against pydicom master and current release |
| 8 | +matrix: |
| 9 | + include: |
| 10 | + # OSX first because it takes a long time to complete before_install |
| 11 | + - name: "Python 3.6, OSX + pydicom" |
| 12 | + os: osx |
| 13 | + language: generic |
| 14 | + env: |
| 15 | + - TEST_SUITE=osx |
| 16 | + - TRAVIS_PYTHON_VERSION=3.6.8 |
| 17 | + # Windows |
| 18 | + - name: "Python 3.6, Windows + pydicom" |
| 19 | + os: windows |
| 20 | + language: shell |
| 21 | + env: |
| 22 | + - TEST_SUITE=windows |
| 23 | + - TRAVIS_PYTHON_VERSION=3.6.8 |
| 24 | + # Conda next, also takes a while |
| 25 | + - name: "Python 3.6, Ubuntu + conda + pydicom" |
| 26 | + os: linux |
| 27 | + dist: bionic |
| 28 | + env: |
| 29 | + - TEST_SUITE=conda |
| 30 | + - TRAVIS_PYTHON_VERSION=3.6 |
| 31 | + # Ubuntu with pydicom master next to find any issues quickly |
| 32 | + - name: "Python 3.6, Ubuntu + pydicom master" |
| 33 | + os: linux |
| 34 | + dist: bionic |
| 35 | + python: "3.6" |
| 36 | + env: TEST_SUITE=pydicom_master |
| 37 | + - name: "Python 3.7, Ubuntu + pydicom master" |
| 38 | + os: linux |
| 39 | + dist: bionic |
| 40 | + python: "3.7" |
| 41 | + env: TEST_SUITE=pydicom_master |
| 42 | + - name: "Python 3.8, Ubuntu + pydicom master" |
| 43 | + os: linux |
| 44 | + dist: bionic |
| 45 | + python: "3.8" |
| 46 | + env: TEST_SUITE=pydicom_master |
| 47 | + - name: "Python 3.6, Ubuntu" |
| 48 | + os: linux |
| 49 | + dist: bionic |
| 50 | + python: "3.6" |
| 51 | + env: TEST_SUITE=solo |
| 52 | + - name: "Python 3.7, Ubuntu" |
| 53 | + os: linux |
| 54 | + dist: bionic |
| 55 | + python: "3.7" |
| 56 | + env: TEST_SUITE=solo |
| 57 | + - name: "Python 3.8, Ubuntu" |
| 58 | + os: linux |
| 59 | + dist: bionic |
| 60 | + python: "3.8" |
| 61 | + env: TEST_SUITE=solo |
| 62 | + - name: "Python 3.6, Ubuntu + pydicom" |
| 63 | + os: linux |
| 64 | + dist: bionic |
| 65 | + python: "3.6" |
| 66 | + env: TEST_SUITE=pydicom_release |
| 67 | + - name: "Python 3.7, Ubuntu + pydicom" |
| 68 | + os: linux |
| 69 | + dist: bionic |
| 70 | + python: "3.7" |
| 71 | + env: TEST_SUITE=pydicom_release |
| 72 | + - name: "Python 3.8, Ubuntu + pydicom" |
| 73 | + os: linux |
| 74 | + dist: bionic |
| 75 | + python: "3.8" |
| 76 | + env: TEST_SUITE=pydicom_release |
| 77 | + |
| 78 | +# Install dependencies and package |
| 79 | +install: |
| 80 | + - source build_tools/travis/install.sh |
| 81 | + - python -m pip install . |
| 82 | + |
| 83 | +# Command to run tests |
| 84 | +script: |
| 85 | + - python -m pytest --cov pylibjpeg-libjpeg |
| 86 | + |
| 87 | +after_success: |
| 88 | + # Upload coverage results to codecov.io |
| 89 | + # curl times out sometimes, so drop the connection timeout but retry more often |
| 90 | + - bash <(curl --connect-timeout 10 --retry 10 --retry-max-time 0 https://codecov.io/bash) || |
| 91 | + (sleep 30 && bash <(curl --connect-timeout 10 --retry 10 --retry-max-time 0 https://codecov.io/bash)) |
| 92 | + |
| 93 | +notifications: |
| 94 | + email: false |
0 commit comments