Skip to content

Commit

Permalink
Merge pull request #3 from fga-gpp-mds/devel
Browse files Browse the repository at this point in the history
Fix travis and add mongo db
  • Loading branch information
Jefersonalves authored Sep 14, 2017
2 parents 93f4b3d + 78da7cd commit 4de9c21
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 3 deletions.
18 changes: 15 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
language: python
python:
- "3.6.2"
services:
- docker

env:
- DOCKER_COMPOSE_VERSION=1.14.0

before_install:
- sudo rm /usr/local/bin/docker-compose
- curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > docker-compose
- chmod +x docker-compose
- sudo mv docker-compose /usr/local/bin

script:
- docker-compose build

notifications:
email: false
slack: unb-jarbas:IhK7IAWdDr6FDIihBfcFFmzd
6 changes: 6 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
version: '3'

services:
mongo:
image: mongo
ports:
- "27017:27017"
web:
build: .
command: python3 manage.py runserver 0.0.0.0:8000
volumes:
- .:/code
ports:
- "8000:8000"
depends_on:
- mongo
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
Django>=1.8,<2.0
mongoengine

0 comments on commit 4de9c21

Please sign in to comment.