Last active
April 26, 2018 19:09
-
-
Save Itsindigo/44e0e238369e950f87e44ce3faf207cb to your computer and use it in GitHub Desktop.
Circle CI Boiler Plate
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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