Skip to content

Commit

Permalink
Merge pull request #35 from docsocsf/circle2
Browse files Browse the repository at this point in the history
Circle2
  • Loading branch information
martinzlocha authored Sep 15, 2018
2 parents e0f95a6 + aa27a42 commit c1f47dd
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 1 deletion.
51 changes: 51 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
version: 2
jobs:
setup:
docker:
- image: circleci/python:3.5.6-jessie-node-browsers
steps:
- checkout
- run: ./setup.sh
- persist_to_workspace:
root: /home/circleci/
paths:
- project

test:
docker:
- image: circleci/python:3.5.6-jessie-node-browsers
steps:
- attach_workspace:
at: /home/circleci
- run: source venv/bin/activate && ./test.sh
deploy:
docker:
- image: circleci/python:3.5.6-jessie-node-browsers
steps:
- attach_workspace:
at: /home/circleci
- run: source venv/bin/activate && eb deploy --profile default
workflows:
version: 2
master:
jobs:
- setup:
filters:
branches:
only: master
- test:
requires:
- setup
- deploy:
requires:
- test

feature_branch:
jobs:
- setup
- test:
requires:
- setup
filters:
branches:
ignore: master
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
Django==1.11.2
django-bootstrap3==8.2.3
pytz==2017.2
pytz==2017.2
awsebcli==3.7.4
6 changes: 6 additions & 0 deletions setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

virtualenv -p python3 venv
venv/bin/pip install -r requirements.txt
cp sampleconfig.py config.py
cp sampledb.sqlite3 db.sqlite3
Empty file modified test.sh
100644 → 100755
Empty file.

0 comments on commit c1f47dd

Please sign in to comment.