Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Circle2 #35

Merged
merged 1 commit into from
Sep 15, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.