-
Notifications
You must be signed in to change notification settings - Fork 113
/
Copy path.travis.yml
47 lines (39 loc) · 1.16 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
sudo: false
cache: pip
language: python
services:
- postgresql
- mysql
python:
- "2.7"
addons:
postgresql: 9.6
apt:
packages:
- postgresql-9.6-postgis-2.3
branches:
only:
- master
install:
- pip install -U pip wheel setuptools
# command to install requirements
- pip install -r requirements.txt
- pip install -r requirements-test.txt
- python setup.py develop -q
before_script:
# - export DISPLAY=:99.0
# - "/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1280x1024x16"
- psql template1 -c 'CREATE EXTENSION hstore;'
- psql -U postgres -c 'CREATE DATABASE nodeshot_ci;'
- psql -U postgres -d nodeshot_ci -c "CREATE EXTENSION postgis;"
- mysql -e 'create database nodeshot_old_ci;'
# try to avoid mysql has gone away errors
- mysql -e "SET GLOBAL wait_timeout = 36000;"
- mysql -e "SET GLOBAL max_allowed_packet=134209536;"
- cd tests
- ./manage.py migrate --noinput --no-initial-data
# command to run tests, e.g. python setup.py test
script:
- coverage run --source=nodeshot runtests.py --keepdb
after_success:
coveralls