|
1 | | -language: bash |
2 | | - |
3 | | -os: |
4 | | - - linux |
5 | | - - osx |
6 | | - - windows |
| 1 | +language: python |
| 2 | +jobs: |
| 3 | + include: |
| 4 | + - name: "Python 2.7 on Linux" |
| 5 | + os: linux |
| 6 | + before_install: |
| 7 | + - sudo apt update |
| 8 | + - sudo apt install python2.7 python-pip |
| 9 | + - sudo pip install tox |
| 10 | + - name: "Python 3.8 on Linux" |
| 11 | + os: linux |
| 12 | + dist: xenial |
| 13 | + language: python |
| 14 | + python: 3.8 |
| 15 | + before_install: |
| 16 | + - sudo rm /usr/bin/python |
| 17 | + - sudo ln -s /usr/bin/python3 /usr/bin/python |
| 18 | + - python3 -m pip install tox-travis |
| 19 | + - name: "Python 2.7 on macOS" |
| 20 | + os: osx |
| 21 | + osx_image: xcode11.2 |
| 22 | + language: shell |
| 23 | + before_install: |
| 24 | + - sudo pip install tox-travis |
| 25 | + - name: "Python 3.8 on macOS" |
| 26 | + os: osx |
| 27 | + osx_image: xcode11.6 # Python 3.8.0 running on macOS 10.14.6 |
| 28 | + language: shell # 'language: python' is an error on Travis CI macOS |
| 29 | + before_install: |
| 30 | + - python3 --version |
| 31 | + - python3 -m pip install --upgrade pip |
| 32 | + - sudo pip install tox-travis |
| 33 | + - name: "Python 2.7 on Windows" |
| 34 | + os: windows # Windows 10.0.17134 N/A Build 17134 |
| 35 | + language: shell # 'language: python' errors Travis CI Windows |
| 36 | + before_install: |
| 37 | + - choco install python2 |
| 38 | + - python --version |
| 39 | + - python -m pip install --upgrade pip |
| 40 | + - pip install tox-travis |
| 41 | + env: PATH=/c/Python27:/c/Python27/Scripts:$PATH |
| 42 | + - name: "Python 3.8 on Windows" |
| 43 | + os: windows # Windows 10.0.17134 N/A Build 17134 |
| 44 | + language: shell # 'language: python' is an error on Travis CI Windows |
| 45 | + before_install: |
| 46 | + - choco install python --version 3.8.8 |
| 47 | + - python --version |
| 48 | + - python -m pip install --upgrade pip |
| 49 | + - python -m pip install tox-travis |
| 50 | + env: PATH=/c/Python38:/c/Python38/Scripts:$PATH |
7 | 51 |
|
| 52 | +install: pip install --upgrade pip |
8 | 53 | script: |
9 | | - - if [ "$TRAVIS_OS_NAME" = "windows" ]; then choco install make; fi |
10 | | - - if [ "$TRAVIS_OS_NAME" = "windows" ]; then choco install -y miniconda3; fi |
11 | | - - make repository-test-all |
| 54 | + - tox -e short-test |
0 commit comments