-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
67 lines (63 loc) · 2.44 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
56
57
58
59
60
61
62
63
64
65
66
67
language: python
sudo: required
jobs:
include:
## Python 2.7 tests are dropped because they are no longer important after py2 end of life
# - name: "python 2.7 qt4 trusty pgmpl"
# dist: trusty
# python: 2.7
## virtualenv:
## system_site_packages: true
# before_install:
# - sudo apt-get update
# - sudo apt-get -y install python-qt4
# before_script:
# # From pyqtgraph's .travis.yml: https://github.com/pyqtgraph/pyqtgraph/blob/develop/.travis.yml
# # We need to create a (fake) display on Travis, let's use a funny resolution
# - export DISPLAY=:99.0
# - "sh -e /etc/init.d/xvfb start"
# - /sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -screen 0 1400x900x24 -ac +extension GLX +render
# - export PGMPL_TEST_VERBOSE=1
## Python 2.7 tests are dropped because they are no longer important after py2 end of life
# - name: "python 2.7 qt5 bionic pgmpl"
# dist: bionic
# python: 2.7
# before_install:
# - sudo apt-get update
# - sudo apt-get -y install python-pyqt5
# services:
# - xvfb
- name: "python 3.6 qt5 bionic pgmpl"
dist: bionic
python: 3.6
before_install:
- sudo apt-get update
- sudo apt-get -y install python3-pyqt5
before_script:
- export PGMPL_TEST_VERBOSE=1
services:
- xvfb
## This doesn't work because of a backwards-incompatible change in PyQt5, so pyqtgraph can't import sip from PyQt5
# - name: "python 3.8 qt5 focal pgmpl"
# dist: focal
# python: 3.8
# before_install:
# - sudo apt-get update
# - sudo apt-get -y install python3-pyqt5
# services:
# - xvfb
# https://stackoverflow.com/a/35029430/6605826
# system_site_packages limits py versions https://travis-ci.community/t/python-3-6-and-3-7-with-system-site-packages-enabled-fails-to-activate-on-xenial/1697
virtualenv:
system_site_packages: true
# apt-get commands depend on py version: https://stackoverflow.com/a/20621143/6605826
install:
# - sudo apt-get update
# - if [[ $TRAVIS_PYTHON_VERSION < 3 ]]; then sudo apt-get -y install python-qt4; fi
# - if [[ $TRAVIS_PYTHON_VERSION > 3 ]]; then sudo apt-get -y install python3-pyqt5; fi
- pip install -r requirements.txt
- pip install codecov coverage
script:
- coverage run -m unittest discover --pattern=*.py -s tests
after_success:
- codecov