forked from pytest-dev/pytest-django
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
59 lines (58 loc) · 2.39 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
# Use container-based environment (faster startup, allows caches).
sudo: false
language: python
python:
- "3.5"
env:
- TESTENV=pypy-2.8.1-master-sqlite_file
- TESTENV=pypy3-2.8.1-1.8-sqlite_file
- TESTENV=python2.6-2.8.1-1.6-sqlite_file
- TESTENV=python2.7-2.8.1-1.4-sqlite_file
- TESTENV=python2.7-2.8.1-1.5-sqlite_file
- TESTENV=python2.7-2.8.1-1.6-sqlite_file
- TESTENV=python2.7-2.8.1-1.7-sqlite_file
- TESTENV=python2.7-2.8.1-1.8-sqlite_file
- TESTENV=python2.7-2.8.1-1.9-sqlite_file
- TESTENV=python2.7-2.8.1-master-mysql_innodb
- TESTENV=python2.7-2.8.1-master-mysql_myisam
- TESTENV=python2.7-2.8.1-master-sqlite_file
- TESTENV=python3.2-2.8.1-1.6-sqlite_file
- TESTENV=python3.3-2.8.1-1.6-sqlite_file
- TESTENV=python3.4-2.8.1-1.5-sqlite_file
- TESTENV=python3.4-2.8.1-1.6-sqlite_file
- TESTENV=python3.4-2.8.1-1.7-sqlite_file
- TESTENV=python3.4-2.8.1-1.8-sqlite_file
- TESTENV=python3.4-2.8.1-1.9-sqlite_file
- TESTENV=python3.4-2.8.1-master-sqlite_file
- TESTENV=python3.5-2.7.3-master-sqlite_file
- TESTENV=python3.5-2.8.1-master-postgres
- TESTENV=python3.5-2.8.1-master-sqlite
- TESTENV=python3.5-2.8.1-master-sqlite_file
- TESTENV=checkqa-python2.7
- TESTENV=checkqa-python3.4
matrix:
allow_failures:
- env: TESTENV=pypy-2.8.1-master-sqlite_file
- env: TESTENV=python2.7-2.8.1-master-mysql_innodb
- env: TESTENV=python2.7-2.8.1-master-mysql_myisam
- env: TESTENV=python2.7-2.8.1-master-sqlite_file
- env: TESTENV=python3.4-2.8.1-master-sqlite_file
- env: TESTENV=python3.5-2.7.3-master-sqlite_file
- env: TESTENV=python3.5-2.8.1-master-postgres
- env: TESTENV=python3.5-2.8.1-master-sqlite
- env: TESTENV=python3.5-2.8.1-master-sqlite_file
install:
# Create pip wrapper script, using travis_retry (a function) and
# inject it into tox.ini.
- mkdir -p bin
- PATH=$PWD/bin:$PATH
- printf '#!/bin/sh\n' > bin/travis_retry_pip
- declare -f travis_retry >> bin/travis_retry_pip
- printf '\necho "Using pip-wrapper.." >&2\ntravis_retry pip "$@"' >> bin/travis_retry_pip
- chmod +x bin/travis_retry_pip
- sed -i.bak 's/^\[testenv\]/\0\ninstall_command = travis_retry_pip install {opts} {packages}/' tox.ini
- diff tox.ini tox.ini.bak && return 1 || true
- sed -i.bak 's/whitelist_externals =/\0\n travis_retry_pip/' tox.ini
- diff tox.ini tox.ini.bak && return 1 || true
- pip install tox
script: tox -e $TESTENV