forked from rmax/scrapy-redis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
63 lines (51 loc) · 1.3 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
60
61
62
63
# Config file for automatic testing at travis-ci.org
# This file will be regenerated if you run travis_pypi_setup.py
language: python
python: 3.5
sudo: false
services:
- redis-server
env:
- SCRAPY_VER=10 PYTHON_VER=27
- SCRAPY_VER=11 PYTHON_VER=27
- SCRAPY_VER=11 PYTHON_VER=34
- SCRAPY_VER=11 PYTHON_VER=35
- SCRAPY_VER=10 PYTHON_VER=py
- SCRAPY_VER=11 PYTHON_VER=py
matrix:
allow_failures:
- env: SCRAPY_VER=10 PYTHON_VER=py
- env: SCRAPY_VER=11 PYTHON_VER=py
before_install:
- python --version
- uname -a
- lsb_release -a
# command to install dependencies, e.g. pip install -r requirements.txt --use-mirrors
install:
- pip install -U tox twine
- pip install -U coverage
- virtualenv --version
- easy_install --version
- pip --version
- tox --version
# command to run tests, e.g. python setup.py test
script:
- tox -e py${PYTHON_VER}-scrapy${SCRAPY_VER}
after_success:
- |
# Codecov requires a single .coverage and will run 'coverage xml' to
# generate the report.
coverage combine
bash <(curl -s https://codecov.io/bash)
after_failure:
- more .tox/log/* | cat
- more .tox/*/log/* | cat
before_cache:
- rm -fr $HOME/.cache/pip/log
cache:
diretories:
- $HOME/.cache/pip
notifications:
email:
on_sucess: never
on_failure: always