Repository navigation
Expand file tree
/
Copy path.travis.yml
More file actions
91 lines (80 loc) · 2.82 KB
/
Copy path.travis.yml
File metadata and controls
91 lines (80 loc) · 2.82 KB
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
matrix:
include:
- name: "Python 3.6 on Linux"
os: linux
dist: xenial
language: python
python: 3.6
service:
- xvfb
script:
- xvfb-run -a python3 setup.py test
- name: "Python 3.7 on Linux"
os: linux
dist: xenial
language: python
python: 3.7
service:
- xvfb
script:
- xvfb-run -a python3 setup.py test
- name: "Python 3.8-dev on Linux"
os: linux
dist: xenial
language: python
python: 3.8-dev
service:
- xvfb
script:
- xvfb-run -a python3 setup.py test
- name: "Python 3.7 on Linux, with optional dependencies and benchmark"
os: linux
dist: xenial
language: python
python: 3.7
service:
- xvfb
install:
# Native libraries for pycairo / pygobject
- sudo apt-get install -y libgirepository1.0-dev gir1.2-gtk-3.0
# Pre-built wheel for wxpython
- pip3 install -U -f https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-16.04 wxpython
# Install the various optional packages
- pip3 install eventlet gevent pycairo pygobject pygame pyqt5!=5.14.1 pyside2 tornado twisted
# Coverage will be reported for the Python 3.7 Linux build
- pip3 install coveralls
script:
- xvfb-run -a coverage run --source=rx setup.py test && coveralls
# Disable MacOS build temporarily, it's failing often on timing assertions
# - name: "Python 3.7 on MacOS, with optional dependencies and benchmark"
# os: osx
# osx_image: xcode10.2
# language: sh
# python: 3.7
# install:
# # Native libraries for pycairo / pygobject
# - brew install pygobject3 gtk+3
# # Install the various optional packages
# - pip3 install eventlet gevent pycairo pygobject pygame pyqt5 pyside2 tornado twisted wxpython
- name: "Python 3.7 on Windows, with optional dependencies and benchmark"
os: windows
language: sh
python: 3.7
install:
# Get Python 3.7 from choco
- choco install python3 --version=3.7.5
- ln -s "/c/Python37/python.exe" "/c/Python37/python3.exe"
- export PATH="/c/Python37/:/c/Python37/Scripts/:$PATH"
# Install the various optional packages
- pip3 install eventlet gevent pygame pyqt5 pyside2 tornado twisted wxpython
# TODO install pycairo and pygobject somehow?
script:
- python3 setup.py test
after_success:
# Run a crude benchmark (unit tests minus test_scheduler) a couple of times.
# Need to make a copy of the script first, because on Windows it disappears
# whilst switching git branches.
- if [[ $TRAVIS_JOB_NAME == *benchmark ]]; then
pip3 install pytest>=4.4.1 pytest-asyncio>=0.10.0;
cp ./.travis/bench.sh bench.sh && ./bench.sh;
fi