forked from liberapay/liberapay.com
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
39 lines (39 loc) · 1016 Bytes
/
.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
language: python
matrix:
include:
- python: 2.7
env: TOXENV=py27
- python: 3.6
env: TOXENV=py36
addons:
postgresql: 9.6
branches:
only:
- master
cache:
directories:
- .tox
before_install:
- tar -xaf ../../liberapay-liberapay.com.tar.gz --strip-components=1
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
dist: trusty
git:
strategy: tarball