forked from webfp/tor-browser-selenium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
53 lines (52 loc) · 1.61 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
sudo: false
language: python
os: linux
dist: focal
services:
- xvfb
addons:
apt:
sources:
- sourceline: 'deb https://deb.torproject.org/torproject.org focal main'
packages:
- tor
- tor-geoipdb
env:
global:
- DOWNLOAD_DIR=${HOME}/download
- STABLE=10.0.1
- EXPERIMENTAL=10.5a1
- TBB_DIST_URL=https://www.torproject.org/dist/torbrowser/
matrix:
- TRAVIS_EXTRA_JOB_WORKAROUND=true
cache:
directories:
- ${DOWNLOAD_DIR}
matrix:
include:
- python: "3.6"
env: VERSION_ARCH="${EXPERIMENTAL}/tor-browser-linux64-${EXPERIMENTAL}_en-US.tar.xz"
- python: "3.6"
env: VERSION_ARCH="${EXPERIMENTAL}/tor-browser-linux64-${EXPERIMENTAL}_zh-CN.tar.xz"
- python: "3.6"
env: VERSION_ARCH="${EXPERIMENTAL}/tor-browser-linux64-${EXPERIMENTAL}_ar.tar.xz"
- python: "3.6"
env: VERSION_ARCH="${STABLE}/tor-browser-linux64-${STABLE}_en-US.tar.xz"
- python: "3.6"
env: VERSION_ARCH="${STABLE}/tor-browser-linux64-${STABLE}_zh-CN.tar.xz"
- python: "3.6"
env: VERSION_ARCH="${STABLE}/tor-browser-linux64-${STABLE}_ar.tar.xz"
- python: "2.7"
env: VERSION_ARCH="${STABLE}/tor-browser-linux64-${STABLE}_en-US.tar.xz"
exclude:
- env: TRAVIS_EXTRA_JOB_WORKAROUND=true
install:
- pip install -r requirements-travis.txt
- pip install .
- TARBALL=`echo ${VERSION_ARCH} |cut -d'/' -f 2`
- . ./travis.sh
- locale="_"`echo $TARBALL |cut -d'_' -f 2 | cut -d'.' -f 1`
- export TBB_PATH=${HOME}/tor-browser${locale}
before_script:
- cd tbselenium
script: travis_retry py.test -s -v --cov=tbselenium --cov-report term-missing --durations=10 test