-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy path.travis.yml
29 lines (29 loc) · 1.34 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
language: python # this works for Linux but is an error on macOS or Windows
matrix:
include:
- name: "Python 3.8 on Linux"
python: 3.8 # this works for Linux but is ignored on macOS or Windows
- name: "Python 3.7 on macOS"
os: osx
osx_image: xcode12.2 # Python 3.7.5 running on macOS 10.14.4
language: shell # 'language: python' is an error on Travis CI macOS
- name: "Python 3.8 on Windows"
os: windows
language: shell # 'language: python' is an error on Travis CI Windows
before_install:
- choco install python --version 3.8.0
- python -m pip install --upgrade pip
env: PATH=/c/Python38:/c/Python38/Scripts:$PATH
allow_failures:
- os: linux
install:
- pip3 install -f https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-16.04 wxPython
- pip3 install --upgrade wxPython
- pip3 install -r requirements.txt
# 'python' points to Python 2.7 on macOS but points to Python 3.7 on Linux and Windows
# 'python3' is a 'command not found' error on Windows but 'py' works on Windows only
script:
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then sh bundledApps/MAKEFILE.sh ci ; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then bash ./bundledApps/MAKEFILE_linux.sh ci ; fi
- if [ "$TRAVIS_OS_NAME" = "windows" ]; then ./bundledApps/MAKEFILE.bat ; fi
# script: pytest