forked from django-oscar/django-oscar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
72 lines (60 loc) · 2.25 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
# Use the newer container-based infrastructure
# http://docs.travis-ci.com/user/workers/container-based-infrastructure/
sudo: false
# Cache pip downloads
cache:
# Apparently if you override the install command that silently disables the
# cache: pip support. This is less than ideal and @dstufft opened up
# travis-ci/travis-ci#3239 to hopefully get that addressed. For now we
# manually add the pip cache directory to the build cache.
directories:
- ~/.cache/pip
language: python
python:
- 2.7
- 3.3
- 3.4
- 3.5
env:
global:
# $TRANSIFEX_PASSWORD for oscar_bot (used in transifex.sh)
- secure: FuIlzEsGJiAwhaIRBmRNsq9eXmuzs25fX6BChknW4lDyVAySWMp0+Zps9Bd0JgfFYUG3Ip+OTmksYIoTUsG25ZJS9cq1IFt3QKUAN70YCI/4ZBLeIdICPEyxq+Km179+NeEXmBUug17RLMLxh3MWfO+RKUHK9yHIPNNpq0dNyoo=
# These two environment variables could be set by Travis itself, or Travis
# could configure itself in /etc/, ~/, or inside of the virtual
# environments. In any case if these two values get configured then end
# users only need to enable the pip cache and manually run pip wheel before
# running pip install.
- PIP_WHEEL_DIR=$HOME/.cache/pip/wheels
- PIP_FIND_LINKS=file://$HOME/.cache/pip/wheels
matrix:
- DJANGO=Django==1.7.11
- DJANGO=Django==1.8.8
- DJANGO=Django==1.9.1
matrix:
exclude:
- python: 3.2
env: "DJANGO=Django==1.9.1"
- python: 3.3
env: "DJANGO=Django==1.9.1"
- python: 3.5
env: "DJANGO=Django==1.7.11"
before_install:
- pip install codecov
install:
# Before installation, we'll run ``pip wheel``, this will build wheels for
# anything that doesn't already have one on PyPI.
- pip wheel -r requirements.txt
# Actually install our dependencies now, this will pull from the directory
# that the first command placed the Wheels into.
- pip install --pre $DJANGO
- pip install -e . -r requirements.txt
before_script:
# Create testing databases for running migrations against
- mysql -e 'CREATE DATABASE oscar_travis;'
- psql -c 'CREATE DATABASE oscar_travis;' -U postgres
script:
- make travis
after_success:
- coveralls
- codecov
- ./transifex.sh