Skip to content

Commit

Permalink
Small tweak to test TravisCI.
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastian-code committed Jul 13, 2018
1 parent bf007a8 commit 2281b7d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
16 changes: 9 additions & 7 deletions .env.example
@@ -1,16 +1,18 @@
# PostgreSQL conf
# POSTGRES_HOST=postgres
# POSTGRES_PORT=5432
# POSTGRES_PASSWORD=mysecretpass
# POSTGRES_USER=bootcamp_usr
# POSTGRES_DB=bootcamp
POSTGRES_HOST=postgres
POSTGRES_PORT=5432
POSTGRES_PASSWORD=mysecretpass
POSTGRES_USER=bootcamp_usr
POSTGRES_DB=bootcamp
DATABASE_URL=postgresql://postgres@127.0.0.1:5432/bootcamp
# Full PostgreSQL URL example
# DATABASE_URL=postgresql://bootcamp_usr:mysecretpass@127.0.0.1:5432/bootcamp
# CONN_MAX_AGE=
# To uncomment for an SQLite local testing
DATABASE_URL=sqlite:///db.sqlite3
# DATABASE_URL=sqlite:///db.sqlite3

# Domain name, used by caddy
DOMAIN_NAME=http://trybootcamp.vitorfs.com
# DOMAIN_NAME=http://trybootcamp.vitorfs.com

# General settings
READ_DOT_ENV_FILE=True
Expand Down
6 changes: 4 additions & 2 deletions .travis.yml
Expand Up @@ -5,17 +5,19 @@ env:
- DJANGO_VERSION=2.0.7
- DJANGO_VERSION=1.11.14
branches:
only:
- master
only:
- master
# Start services.
services:
- redis-server
- postgresql
# command to install dependencies
install:
- pip install -q Django==$DJANGO_VERSION
- pip install -r requirements/local.txt
- pip install python-coveralls
before_script:
- psql -c "CREATE DATABASE bootcamp;" -U postgres
- cp .env.example .env
- python manage.py migrate
- python manage.py collectstatic --noinput
Expand Down

0 comments on commit 2281b7d

Please sign in to comment.