This repository has been archived by the owner on Mar 2, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
.travis.yml
56 lines (51 loc) · 1.69 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
48
49
50
51
52
53
54
55
56
sudo: false
dist: trusty
language: python
python:
- "2.7"
- "3.4"
- "3.5"
env:
global:
travis=1
DATASTORE_HOST="http://localhost:8080"
DATASTORE_DATASET="gcd-data"
# Travis CI services and addons we use
services:
- mongodb
- postgresql
addons:
postgresql: "9.5"
# we have some dev dependencies to install, and we run some services needed for
# testing. Currently that's dynalite to emulate DynamoDB and gcd to emulate
# Google Cloud Datastore. We use supervisord to manage these processes, so see
# ./tests/start_ci_services.sh and ./tests/supervisord.ctl for details. Also
# note that we use the `sleep 5` hack below to give supervisord time to get
# the services started
install:
- pip install --upgrade -r dev-requirements.txt
- if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then pip install --upgrade -r dev-requirements-27.txt; fi
- ./tests/start_ci_services.sh
- sleep 5
# Setup postgresql for testing
before_script:
- psql -c 'create database gludb_test;' -U postgres
# command to run tests
script: nosetests
# Sometimes the services that we need to run are what fails... if that happens
# this may actually help us figure out what's going on
after_failure:
- echo "***** supervisord log ****"
- cat /tmp/supervisord.log
- echo "***** dynalite stdout ****"
- cat /tmp/dynalite_stdout.log
- echo "***** dynalite stderr ****"
- cat /tmp/dynalite_stderr.log
- echo "***** gcd stdout ****"
- cat /tmp/gcd_stdout.log
- echo "***** gcd stderr ****"
- cat /tmp/gcd_stderr.log
- echo "***** s3 stdout ****"
- cat /tmp/s3server_stdout.log
- echo "***** s3 stderr ****"
- cat /tmp/s3server_stderr.log