-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
33 lines (33 loc) · 931 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
31
32
33
sudo: false
language: python
cache:
directories:
- $HOME/.pip-cache/
python:
- "2.7"
env:
global:
- DJANGO_SECRET_KEY='not-a-good-secret-key'
- DJANGO_EMAIL_BACKEND='django.core.mail.backends.console.EmailBackend'
- DJANGO_DEBUG='True'
- DJANGO_STATIC_ROOT='ladder/public/static/'
- DJANGO_MEDIA_ROOT='ladder/public/media/'
# Sqlite Configuration
#DATABASE_URL='sqlite:///sqlite_database'
- DATABASE_URL="postgresql://postgres:@localhost:5432/ladder"
# Dev creds
- TWILIO_ACCOUNT_SID='AC1c3ddb839dc4119fb322b014996841d6'
- TWILIO_AUTH_TOKEN='cebe4dac1eb6194d3668679225b6f288'
- TWILIO_PHONE_NUMBER='+15005550006'
matrix:
- TOX_ENV=py27-dj17
- TOX_ENV=flake8
before_script:
- psql -c 'create database ladder;' -U postgres
install:
- pip install --upgrade pip
- pip install tox==1.8.0
script:
- tox -e $TOX_ENV
after_script:
- cat .tox/$TOX_ENV/log/*.log