-
Notifications
You must be signed in to change notification settings - Fork 11
/
.travis.yml
59 lines (45 loc) · 2.12 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
language: python
python:
- '2.7'
sudo: false
cache:
directories:
- $HOME/.pip-cache
addons:
postgresql: "9.3"
firefox: "30.0"
env:
global:
- PYTEST_OPTS="--pep8 --cov fancypages"
- PIP_OPTS="--download-cache $HOME/.pip-cache"
matrix:
# Testing against Django 1.4
- DJANGO="Django>=1.4,<1.5" MODEL_UTILS_VERSION=">2.0" TARGET='test-standalone-fancypages'
- DJANGO="Django>=1.4,<1.5" MODEL_UTILS_VERSION=">2.0" TARGET='test-oscar-fancypages'
# Testing against Django 1.5
- DJANGO="Django>=1.5,<1.6" MODEL_UTILS_VERSION="==1.5" TARGET='test-standalone-fancypages'
- DJANGO="Django>=1.5,<1.6" MODEL_UTILS_VERSION="==1.5" TARGET='test-oscar-fancypages'
# Testing against Django 1.6
- DJANGO="Django>=1.6,<1.7" MODEL_UTILS_VERSION=">2.0" TARGET='test-standalone-fancypages'
- DJANGO="Django>=1.6,<1.7" MODEL_UTILS_VERSION=">2.0" TARGET='test-oscar-fancypages'
# Testing against Django 1.7
- DJANGO="Django>=1.7,<1.8" MODEL_UTILS_VERSION=">2.0" TARGET='test-standalone-fancypages'
# FIXME: oscar_fancypages currently doesn't support Django 1.7
#- DJANGO="https://github.com/django/django/archive/1.7b4.zip" MODEL_UTILS_VERSION=">2.0" TARGET='test-oscar-fancypages' EXTRA_INSTALLS="git+https://github.com/elbaschid/django-oscar.git@add_support_for_django17#egg=django-oscar-dev"
# We run the browser tests only once to save a bit of time
- DJANGO="Django>=1.6,<1.7" MODEL_UTILS_VERSION=">2.0" TARGET='test-standalone-fancypages' PYTEST_OPTS="-m browser"
before_install:
- "export DISPLAY=:99.0"
- "/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1280x1024x16"
install:
- pip install $PIP_OPTS wheel setuptools -U
- pip install $PIP_OPTS $DJANGO django-model-utils$MODEL_UTILS_VERSION $EXTRA_INSTALLS --use-wheel
- pip install $PIP_OPTS . --use-wheel
- pip install $PIP_OPTS -r requirements.txt --use-wheel
before_script:
- psql -c 'create database fp_sandbox;' -U postgres
- mysql -e 'create database fp_sandbox;'
script:
- make $TARGET
after_success:
- coveralls