forked from scrapinghub/splash
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
59 lines (46 loc) · 1.57 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
language: python
sudo: required
dist: trusty
branches:
only:
- master
- /^\d\.\d+$/
matrix:
include:
- python: "2.7"
env: SPLASH_PYTHON_VERSION="venv" SPLASH_BUILD_PARALLEL_JOBS=2
- python: "3.4"
env: SPLASH_PYTHON_VERSION="venv" SPLASH_BUILD_PARALLEL_JOBS=2
allow_failures:
# Docker image uses Python 3.4; Python 2.x tests work,
# but hang at shutdown for some reason.
- python: "2.7"
env: SPLASH_PYTHON_VERSION="venv" SPLASH_BUILD_PARALLEL_JOBS=2
before_install:
# install common packages
- sudo bash -x dockerfiles/splash/provision.sh prepare_install
- sudo apt-get install -y liblua5.2-dev zlib1g-dev libssl-dev python-openssl
# install QT5
- sudo -E bash -x dockerfiles/splash/provision.sh install_builddeps
- sudo -E bash -x dockerfiles/splash/provision.sh install_deps
# instal PyQT5
- sudo -E bash -x dockerfiles/splash/provision.sh install_pyqt5
# install Python packages
- sudo chmod -R 777 $VIRTUAL_ENV
- bash -x dockerfiles/splash/provision.sh install_python_deps
# instal Flash
- sudo -E bash -x dockerfiles/splash/provision.sh install_flash
# install Python packages required for tests
- pip install -r requirements-dev.txt
- pip install -U pytest-cov coverage codecov pytest-xdist
install:
# install Splash
- pip install .
script:
- py.test --version
- py.test --cov=splash --doctest-modules --duration=50 splash
after_success:
- codecov
cache:
directories:
- $HOME/.cache/pip