Skip to content

Instantly share code, notes, and snippets.

@Itsindigo
Last active April 26, 2018 19:09
Show Gist options
  • Save Itsindigo/44e0e238369e950f87e44ce3faf207cb to your computer and use it in GitHub Desktop.
Save Itsindigo/44e0e238369e950f87e44ce3faf207cb to your computer and use it in GitHub Desktop.
Circle CI Boiler Plate
version: 2.0
jobs:
venv:
docker:
- image: eatsindigo/phoebus-online-build
steps:
- add_ssh_keys
- checkout
- attach_workspace:
at: .
- run:
command: |
virtualenv .venv
source .venv/bin/activate
pip install -r requirements/linux.txt
pip install -r requirements/base.txt
pip install -r requirements/test.txt
pip wheel --wheel-dir=./wheels -r requirements/private-build.txt
pip install --no-index --find-links=wheels -r requirements/private-deploy.txt
- persist_to_workspace:
root: .
paths:
- .venv
- wheels
npm:
docker:
- image: eatsindigo/phoebus-online-build
steps:
- add_ssh_keys
- checkout
- run:
command: npm install
- persist_to_workspace:
root: .
paths:
- node_modules
statics:
docker:
- image: eatsindigo/phoebus-online-build
steps:
- add_ssh_keys
- checkout
- attach_workspace:
at: .
- run:
command: |
export DJANGO_SETTINGS_MODULE=smewebdeposits.settings.dev
export CLIENT=phoebus
source .venv/bin/activate
node node_modules/gulp/bin/gulp.js build
python manage.py collectstatic --no-input
- persist_to_workspace:
root: .
paths:
- static/dist
- static/target
integration-test:
docker:
- image: eatsindigo/phoebus-online-build
steps:
- add_ssh_keys
- checkout
- attach_workspace:
at: .
- run:
command: |
source .venv/bin/activate
./runselenium.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment