forked from webfp/tor-browser-crawler
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
35 lines (35 loc) · 1.15 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
sudo: required
language: python
os: linux
dist: trusty
env:
matrix:
- TRAVIS_EXTRA_JOB_WORKAROUND=true
matrix:
include:
- python: "2.7"
env: VERSION_ARCH='4.0.8/tor-browser-linux64-4.0.8_en-US.tar.xz'
- python: "2.7"
env: VERSION_ARCH='5.5.4/tor-browser-linux64-5.5.4_en-US.tar.xz'
- python: "2.7"
env: VERSION_ARCH='6.0a4/tor-browser-linux64-6.0a4_en-US.tar.xz'
# - python: "3.4"
# env: VERSION_ARCH='5.5.4/tor-browser-linux64-5.5.4_en-US.tar.xz'
# - python: "3.5"
# env: VERSION_ARCH='5.5.4/tor-browser-linux64-5.5.4_en-US.tar.xz'
exclude:
- env: TRAVIS_EXTRA_JOB_WORKAROUND=true
before_install:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
install:
- pip install pytest-cov pytest
- pip install -r requirements.txt
- sudo apt-get -qq install tcpdump libpcap-dev tshark
- tarball=`echo $VERSION_ARCH | cut -d'/' -f 2`
- wget https://archive.torproject.org/tor-package-archive/torbrowser/$VERSION_ARCH
- tar -xf $tarball
- export TBB_PATH=`pwd`/tor-browser_en-US
before_script:
- cd tbcrawler/test
script: travis_retry py.test -s --cov=tbcrawler --cov-report term-missing --durations=10