forked from yourlabs/django-autocomplete-light
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
64 lines (64 loc) · 1.8 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
sudo: false
language: python
python:
- '3.4'
matrix:
allow_failures:
- env: TOXENV=base-py27-django110-sqlite
- env: TOXENV=base-pypy-django110-sqlite
- env: TOXENV=base-py34-django110-sqlite
env:
global:
- PIP_RETRIES=10
- PIP_TIMEOUT=30
matrix:
- TOXENV=checkqa
- TOXENV=base-py27-django18-sqlite
- TOXENV=base-py27-django19-sqlite
- TOXENV=base-py27-django110-sqlite
- TOXENV=base-pypy-django18-sqlite
- TOXENV=base-pypy-django19-sqlite
- TOXENV=base-pypy-django110-sqlite
- TOXENV=base-py34-django18-sqlite
- TOXENV=base-py34-django19-sqlite
- TOXENV=base-py34-django110-sqlite
install:
- travis_retry pip install -U pip
- travis_retry pip install tox
- travis_retry pip freeze
before_script:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- sleep 3 # give xvfb some time to start
- if echo "$TOXENV" | grep mysql; then mysql -e 'create database autocomplete_light_test;';
fi
- if echo "$TOXENV" | grep postgresql; then psql -c 'create database autocomplete_light_test;'
-U postgres; fi
script:
- travis_retry tox
- test -d .tox/$TOXENV/log && cat .tox/$TOXENV/log/*.log || true
after_success:
- travis_retry pip install codecov
- cd test_project && codecov
notifications:
irc:
channels:
- irc.freenode.org#yourlabs
template:
- "%{repository} (%{commit} %{author}) : %{message} %{build_url} %{compare_url}"
cache:
directories:
- .tox/$TOXENV
- $HOME/.cache/pip
deploy:
provider: openshift
user: [email protected]
password:
secure: KZ3qy1NuBncXtEE8writve7AJZK1jmuvduwYEjs7rMboHxpHzu6D2BWeMk2aB+xBUUPhjIycRKVq//ZByS5qMqCH1NLsoMQwVp1pW/QwAvAmW/DfBtwESLt26b8OsUtepZkOBpuT3jNTGUZPakQZM1ysGBgGgpayH8dVp9TvGlk=
app: dal
domain: yourlabs
deployment_branch: master
skip_cleanup: true
on:
repo: yourlabs/django-autocomplete-light
branch: master