forked from r0x0r/pywebview
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
58 lines (54 loc) · 2.32 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
matrix:
include:
- os: osx
osx_image: xcode8
language: generic
sudo: required
env: PYTHON_VERSION="2"
#- os: osx
# language: generic
# sudo: required
# env: PYTHON_VERSION="3"
- os: linux
sudo: required
dist: trusty
language: python
python: "2.7_with_system_site_packages"
env: PACKAGES="xvfb gir1.2-gtk-3.0 gir1.2-webkit-3.0 python-gi python-gi-cairo pep8 pyflakes python-pytest" PYTHON="python"
- os: linux
sudo: required
dist: trusty
language: python
python: "3.4_with_system_site_packages"
env: PACKAGES="xvfb gir1.2-gtk-3.0 gir1.2-webkit-3.0 python3-gi python3-gi-cairo python3-pep8 pyflakes python3-pytest" PYTHON="python3"
- os: linux
sudo: required
dist: trusty
language: python
python: "3.4_with_system_site_packages"
env:
- PACKAGES="xvfb python3-pyqt5 python3-pyqt5.qtwebkit libqt5webkit5-dev python3-pep8 pyflakes python3-pytest" PYTHON="python3"
- USE_QT="True"
- os: linux
sudo: required
dist: trusty
language: python
python: "2.7_with_system_site_packages"
env:
- PACKAGES="xvfb python-qt4 libqtwebkit-dev pep8 pyflakes python-pytest" PYTHON="python"
- USE_QT="True"
install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]] && [[ "$PYTHON_VERSION" == "3" ]]; then brew install python3; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]] && [[ "$PYTHON_VERSION" == "3" ]]; then pip3 install pyobjc pytest; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]] && [[ "$PYTHON_VERSION" == "2" ]]; then sudo pip2 install pyobjc pytest; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get update -q; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install --no-install-recommends -y $(echo $PACKAGES); fi
before_script:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export DISPLAY=:99.0; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sh -e /etc/init.d/xvfb start; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sleep 3; fi # give xvfb some time to start
script:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then if [[ "$PYTHON_VERSION" == "3" ]]; then python3 -m pytest tests; else python2 -m pytest tests; fi; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then python -m pytest tests -s; fi
notifications:
email: false