Browse Source

WIP65

pull/386/head
Eduardo Calil 10 years ago
parent
commit
1ad2ef1780
  1. 4
      .env_dev
  2. 3
      .travis.yml
  3. 5
      sapl/settings_travis.py

4
.env_dev

@ -1,5 +1,5 @@
DATABASE_URL = postgresql://sapl:@localhost:5432/sapl DATABASE_URL = postgresql://sapl:@localhost:/sapl
SECRET_KEY=2j_-c$_8rssj3ijw=!tf$zr6vlee=s5z^w056trow(%t=k2o9_ SECRET_KEY=TravisTest
DEBUG=False DEBUG=False
EMAIL_USE_TLS = True EMAIL_USE_TLS = True
EMAIL_PORT = 587 EMAIL_PORT = 587

3
.travis.yml

@ -17,9 +17,8 @@ install:
- pip install --upgrade setuptools - pip install --upgrade setuptools
before_script: before_script:
- sudo service postgresql restart
- npm install -g bower - npm install -g bower
- cp sapl/settings_travis.py sapl/settings.py - cp .env_dev .env
- sed -i -e 's/getpass.getuser()/"postgres"/g' sapl/settings.py - sed -i -e 's/getpass.getuser()/"postgres"/g' sapl/settings.py
- psql -c 'create database sapl;' -U postgres - psql -c 'create database sapl;' -U postgres
- python manage.py syncdb –migrate –noinput - python manage.py syncdb –migrate –noinput

5
sapl/settings_travis.py

@ -7,6 +7,7 @@ https://docs.djangoproject.com/en/1.8/topics/settings/
For the full list of settings and their values, see For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.8/ref/settings/ https://docs.djangoproject.com/en/1.8/ref/settings/
""" """
from dj_database_url import parse as db_url
from unipath import Path from unipath import Path
from .temp_suppress_crispy_form_warnings import \ from .temp_suppress_crispy_form_warnings import \
@ -18,10 +19,10 @@ BASE_DIR = Path(__file__).ancestor(2)
# See https://docs.djangoproject.com/en/1.8/howto/deployment/checklist/ # See https://docs.djangoproject.com/en/1.8/howto/deployment/checklist/
# SECURITY WARNING: keep the secret key used in production secret! # SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = '!9g1-#la+#(oft(v-y1qhy$jk-2$24pdk69#b_jfqyv!*%a_)t' SECRET_KEY = 'TravisTest'
# SECURITY WARNING: don't run with debug turned on in production! # SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True DEBUG = False
ALLOWED_HOSTS = ['*'] ALLOWED_HOSTS = ['*']

Loading…
Cancel
Save