This repository has been archived by the owner on Oct 12, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
55 lines (55 loc) · 1.59 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
47
48
49
50
51
52
53
54
55
language: python
jobs:
allow_failures:
os:
- osx
include:
- os: linux
dist: bionic
services:
- xvfb
name: "Python 3.7 on Bionic Linux"
python:
- 3.7
- os: linux
dist: bionic
services:
- xvfb
name: "Python 3.8 on Bionic Linux"
python: 3.8
- os: osx
osx_image: xcode11
language: shell
name: "Python 3.8 on macOS"
- os: windows
language: shell
before_install:
- choco install python --version=3.7.7
env: PATH=/c/Python37:/c/Python37/Scripts:$PATH
name: "Python 3.7 on Windows"
- os: windows
language: shell
before_install:
- choco install python3
env: PATH=/c/Python38:/c/Python38/Scripts:$PATH
name: "Python 3.8 on Windows"
addons:
apt:
packages:
- x11-utils
- libxkbcommon-x11-0
- libxcb-keysyms1-dev
- libx11-xcb-dev
- libxcb-xinerama0-dev
- libxcb-randr0-dev
- libxcb-render0-dev
- libxcb-image0-dev
- libxcb-icccm4-dev
- libxcb-render-util0-dev
install:
- if [ "$TRAVIS_OS_NAME" = "windows" ]; then py -m pip install -r requirements.txt; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then export DISPLAY=:99.0; /sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -screen 0 1920x1200x24 -ac +extension GLX +render -noreset;sleep 3;pip3 install -r requirements.txt; fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then pip3 install -r requirements.txt; fi
script:
- pytest -vxrs --cov=./
- codecov