forked from liberapay/liberapay.com
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
30 lines (30 loc) · 807 Bytes
/
.travis.yml
File metadata and controls
30 lines (30 loc) · 807 Bytes
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
language: python
python:
- 3.5
addons:
postgresql: 9.4
branches:
only:
- master
cache:
directories:
- .tox
install:
- if [ "${TRAVIS_BRANCH}" = "master" -a "${TRAVIS_PULL_REQUEST}" = "false" ]; then rm -rf .tox; fi
- pip install tox
before_script:
- psql -U postgres -c 'CREATE DATABASE liberapay_tests;'
- DATABASE_URL=liberapay_tests ./recreate-schema.sh test
- if [ "${TRAVIS_BRANCH}" = "master" -a "${TRAVIS_PULL_REQUEST}" = "false" ]; then rm -rfv tests/py/fixtures; export LIBERAPAY_I18N_TEST=yes; fi
script: tox
notifications:
email: false
irc:
channels:
- "chat.freenode.net#liberapay"
on_success: change
on_failure: always
template:
- "%{repository} (%{branch}:%{commit} by %{author}): %{message} (%{build_url})"
skip_join: true
sudo: false