|
| 1 | +# We set the language to c because python isn't supported on the MacOS X nodes |
| 2 | +# on Travis. However, the language ends up being irrelevant anyway, since we |
| 3 | +# install Python ourselves using conda. |
| 4 | +language: c |
| 5 | + |
| 6 | +os: |
| 7 | + - linux |
| 8 | + |
| 9 | +# Use Travis' container-based architecture |
| 10 | +sudo: false |
| 11 | + |
| 12 | +notifications: |
| 13 | + slack: |
| 14 | + on_success: never |
| 15 | + on_failure: always |
| 16 | + secure: "TGQd3tbCDD4yz71iDgcwydUCJERx9MGOAHOtVc6SLMANHXmrXl1vIdAChr4P/1LPqLawjUC/9mqBZTImQj/Pg5PaIVnz7K0PN/fTVHqCWERZoeW5KheQ6Wg89a9B54aDTGzvNuRH83l3jQBYfa9ZuCv5mpeVOIzPcBFUrD+9DqA93DJc1NIfwlyJStyXS7aVHhDsD318GZtxY5ZL1pA0GWfde68vc5/Ng6QLqqTeogEZ0reVsXDAijjnOAQsnzYBsZH86vS3JldihAfMygY2rr9jURfpx0EQivCBeJsKtm9IVEh4Iy54TzxyS87KRW1DGjPrIIDzdq2BXfKF+zTiy9QUHzwijJCE4EusCHjaITEis9lq77g9pQMDXCCBhKsgs69lYSSxmhD8VahH0Ex5Pj5aLy3X71yIAA95Xb8q0YPPsjVHF4R2F91S4QMPxyfddym7JiBvNWOPZ2Jye+an+H5hgRZvaSClUUjIT7MDX3UkhzvMrAD4n7Yl64wcPdmj4GJD04aOq55pCfEw088GDL64HAYYnCpEK+hkeKSpzYFjJEwPgC5dLY7RNUwm0tuyRcnLwoRMYLVMT7TWoSfgPosv7kciIkS5c6lmqPRV11AcJARPP6+XIUJ333rkqdLQy59VtiBASQRSxsZKqewEaYv5u+8g+y2vmMLQKkFPW60=" |
| 17 | + if: type = cron |
| 18 | + |
| 19 | +env: |
| 20 | + global: |
| 21 | + # The following versions are the 'default' for tests, unless |
| 22 | + # overidden underneath. They are defined here in order to save having |
| 23 | + # to repeat them for all configurations. |
| 24 | + - TOXENV='test' |
| 25 | + - TOXARGS='-v' |
| 26 | + - TOXPOSARGS='' |
| 27 | + - CONDA_DEPENDENCIES="pandas pytables" |
| 28 | + |
| 29 | +matrix: |
| 30 | + include: |
| 31 | + |
| 32 | + - language: python |
| 33 | + python: 3.6 |
| 34 | + name: Python 3.6 and pytest 4.6 (Linux) |
| 35 | + env: TOXENV=py36-test-pytest46 |
| 36 | + |
| 37 | + - os: windows |
| 38 | + name: Python 3.6 and pytest 5.0 (Windows) |
| 39 | + env: PYTHON_VERSION=3.6 |
| 40 | + TOXENV=py36-test-pytest50 |
| 41 | + |
| 42 | + - os: osx |
| 43 | + name: Python 3.7 and pytest 5.1 (MacOS X) |
| 44 | + env: PYTHON_VERSION=3.7 |
| 45 | + TOXENV=py37-test-pytest51 |
| 46 | + |
| 47 | + - language: python |
| 48 | + python: 3.7 |
| 49 | + name: Python 3.7 and pytest 5.2 (Linux) |
| 50 | + env: TOXENV=py37-test-pytest52 |
| 51 | + |
| 52 | + - os: windows |
| 53 | + name: Python 3.8 and pytest 5.3 (Windows) |
| 54 | + env: PYTHON_VERSION=3.8 |
| 55 | + TOXENV=py38-test-pytest53 |
| 56 | + |
| 57 | + - language: python |
| 58 | + python: 3.8 |
| 59 | + name: Python 3.8 and pytest 6.0 (Linux) |
| 60 | + env: TOXENV=py38-test-pytest60 |
| 61 | + |
| 62 | + - os: osx |
| 63 | + name: Python 3.8 and pytest dev (MacOS X) |
| 64 | + env: PYTHON_VERSION=3.8 |
| 65 | + TOXENV=py38-test-pytestdev |
| 66 | + |
| 67 | +install: |
| 68 | + - if [[ $TRAVIS_OS_NAME == osx || $TRAVIS_OS_NAME == windows ]]; then |
| 69 | + git clone git://github.com/astropy/ci-helpers.git; |
| 70 | + source ci-helpers/travis/setup_python.sh; |
| 71 | + fi |
| 72 | + |
| 73 | +script: |
| 74 | + - pip install tox |
| 75 | + - tox $TOXARGS -- $TOXPOSARGS |
0 commit comments