forked from mozilla-services/cliquet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
30 lines (29 loc) · 827 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
language: python
python: 2.7
services: redis-server
addons:
postgresql: "9.4"
env:
- TOX_ENV=py27
- TOX_ENV=py34
- TOX_ENV=pypy
- TOX_ENV=py27-raw
- TOX_ENV=flake8
- TOX_ENV=docs
- ACTION=loadtest_simulation
matrix:
allow_failures:
- env: ACTION=loadtest_simulation
install:
- pip install tox
before_script:
- 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
script:
- if [[ $ACTION != loadtest_simulation ]]; then tox -e $TOX_ENV; fi
- if [[ $ACTION == loadtest_simulation ]]; then make loadtest-check-simulation; fi
after_success:
# Report coverage results to coveralls.io
- pip install coveralls
- coveralls