forked from ArchiveTeam/wpull
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
54 lines (43 loc) · 1.18 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
sudo: false
language: python
python:
- 3.2
- 3.3
- 3.4
- 3.5
- pypy3
addons:
apt:
packages:
- liblua5.2-dev
cache:
directories:
- $HOME/.cache/pip
# blacklist
branches:
except:
- topic/rewrite_phantomjs
- topic/rewrite_phantomjs_2
# command to install dependencies
install:
- if [[ $TRAVIS_PYTHON_VERSION != 'pypy3' ]]; then
travis_retry pip install -q -r requirements.txt;
else
travis_retry pip install -q -r requirements-pypy.txt;
fi
- if [[ $TRAVIS_PYTHON_VERSION != 'pypy3' ]]; then
pip install -q git+https://github.com/bastibe/lunatic-python.git@f3f68d2c8638c6f423912264aeb750f5f7eb14ee#egg=lunatic-python;
fi
- travis_retry pip install -q coverage python-coveralls warcat youtube-dl
# command to run tests
script:
- pip install . -t thematrix/ --no-dependencies
- if [[ $TRAVIS_PYTHON_VERSION != 'pypy3' && $TRAVIS_PYTHON_VERSION != '3.2' ]]; then
cd thematrix/ && nosetests --with-coverage --cover-package=wpull --cover-branches;
else
cd thematrix/ && nosetests;
fi
after_success:
- if [[ $TRAVIS_PYTHON_VERSION != 'pypy3' && $TRAVIS_PYTHON_VERSION != '3.2' ]]; then
coveralls;
fi