forked from Kinto/kinto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
42 lines (41 loc) · 1.07 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
language: python
python: 2.7
cache: pip
services: redis-server
addons:
postgresql: "9.4"
env:
- TOX_ENV=py27
- TOX_ENV=py34
- TOX_ENV=py27-raw
- TOX_ENV=flake8
- TOX_ENV=docs
install:
- pip install tox
before_script:
- echo "Pull request ${TRAVIS_PULL_REQUEST}"
- sudo sed -i "s/fsync/#fsync/" /etc/postgresql/9.4/main/postgresql.conf
- sudo /etc/init.d/postgresql restart
- psql -c "CREATE DATABASE testdb ENCODING 'UTF8' TEMPLATE template0;" -U postgres
- make version-file
script:
- tox -e $TOX_ENV
after_success:
# Report coverage results to coveralls.io
- pip install coveralls
- coveralls
matrix:
include:
- python: 3.5
env:
- TOX_ENV=py35
- env: ACTION=loadtest_tutorial
before_script: echo 'Tutorial'
script: make loadtest-check-tutorial
- env: ACTION=loadtest_simulation
before_script: echo 'Simulation'
script: make loadtest-check-simulation
- env: TOX_ENV=pypy
script: if [ "${TRAVIS_BRANCH}" = "master" ]; then tox -e $TOX_ENV; else true; fi;
allow_failures:
- env: TOX_ENV=pypy