Skip to content

Commit d7c60dc

Browse files
committed
Added DB config to .travis.yml.
1 parent b58281b commit d7c60dc

1 file changed

Lines changed: 26 additions & 3 deletions

File tree

.travis.yml

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,40 @@
1+
# .travis.yml
2+
# Configuration file for Travis-CI.org hosted testing
3+
14
language: python
5+
26
python:
37
- "2.7"
8+
9+
branches:
10+
only:
11+
- master
12+
413
services:
514
- postgresql
615
- rabbitmq
716

8-
# command to install dependencies
917
before_install:
1018
- sudo apt-get install -qq libevent-dev libpq-dev
19+
1120
install:
1221
- "pip install -r requirements.txt --use-mirrors"
1322

14-
# command to run tests
1523
before_script:
1624
- "psql -c 'create database deis_testing;' -U postgres"
17-
script: "python manage.py test"
25+
- |
26+
cat > deis/local_settings.py <<EOF
27+
DATABASES = {
28+
'default': {
29+
'ENGINE': 'django.db.backends.postgresql_psycopg2',
30+
'NAME': 'deis_testing',
31+
'USER': 'postgres',
32+
'PASSWORD': '',
33+
'HOST': '',
34+
'PORT': '',
35+
}
36+
}
37+
SECRET_KEY = ')9$y9(@_r!+ai=ub)wsp2!!vs4i67x7ke9!jaljgf1_@rw421='
38+
EOF
39+
40+
script: "make test"

0 commit comments

Comments
 (0)