Skip to content

Commit fb5f890

Browse files
committed
feat(.travis): added basic continious integration support
foo bar
1 parent 92f3430 commit fb5f890

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

.travis.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
language: python
2+
python:
3+
- "2.7"
4+
services:
5+
- postgresql
6+
- redis-server
7+
before_script:
8+
- export DATABASE_URL=postgres://postgres@localhost/piedpiper
9+
- export DJANGO_SECRET=`openssl rand -base64 32`
10+
- psql -c 'CREATE DATABASE "piedpiper";' -U postgres
11+
install:
12+
- pip install cookiecutter
13+
- cookiecutter . --no-input
14+
- cd piedpiper-web
15+
- pip install -r requirements/test.txt
16+
script:
17+
- ./piedpiper/manage.py test piedpiper
18+
19+
notifications:
20+
email: false
21+
22+
# This reportedly works around an issue downloading packages from pypi on
23+
# travis. Consider removing this after the underlying issue is fixed.
24+
# https://github.com/travis-ci/travis-ci/issues/2389
25+
sudo: false
26+
27+
matrix:
28+
fast_finish: true

0 commit comments

Comments
 (0)