This repository has been archived by the owner on Mar 15, 2024. It is now read-only.
forked from pytest-dev/pytest-django
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
87 lines (73 loc) · 2.63 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
# Use container-based environment (faster startup, allows caches).
sudo: false
language: python
matrix:
fast_finish: true
include:
- python: 3.6
env: TOXENV=py36-pytest30-djangomaster-postgres
- python: 3.6
env: TOXENV=py36-pytest30-django1.11-postgres
- python: 3.6
env: TOXENV=py36-pytest30-django1.10-postgres
- python: 3.6
env: TOXENV=py36-pytest30-django1.9-postgres
- python: 3.6
env: TOXENV=py36-pytest30-django1.8-postgres
- python: 3.6
env: TOXENV=py36-checkqa
- python: 3.5
env: TOXENV=py35-pytest30-django1.11-postgres
- python: 3.4
env: TOXENV=py34-pytest30-django1.11-postgres
- python: 3.3
env: TOXENV=py34-pytest30-django1.8-postgres
- python: 2.7
env: TOXENV=py27-pytest30-django1.11-mysql_innodb
- python: 2.7
env: TOXENV=py27-pytest30-django1.11-mysql_myisam
- python: 2.7
env: TOXENV=py27-pytest30-django1.11-postgres
- python: 2.7
env: TOXENV=py27-pytest30-django1.10-postgres
- python: 2.7
env: TOXENV=py27-pytest30-django1.9-postgres
- python: 2.7
env: TOXENV=py27-pytest30-django1.8-postgres
- python: 2.7
env: TOXENV=py27-pytest30-django1.7-postgres
- python: 2.7
env: TOXENV=py27-checkqa
- python: pypy
env: TOXENV=pypy-pytest30-django1.11-sqlite_file
- python: pypy3
env: TOXENV=pypy3-pytest30-django1.8-sqlite
- python: pypy3
env: TOXENV=pypy3-pytest30-django1.10-sqlite_file
allow_failures:
- env: TOXENV=py36-pytest30-djangomaster-postgres
# Temporary.
# https://github.com/pytest-dev/pytest-django/pull/445
# https://github.com/pytest-dev/pytest-django/issues/448
- env: TOXENV=pypy3-pytest30-django1.8-sqlite
- env: TOXENV=pypy3-pytest30-django1.10-sqlite_file
cache:
directories:
- "${TRAVIS_BUILD_DIR}/.tox"
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==2.3.1
script:
- tox
- "find ${TRAVIS_BUILD_DIR}/.tox -name 'log' -o -name '__pycache__' -type d | xargs -I {} rm -rf {}"