2020-10-27 14:10:50 -04:00
|
|
|
version: 2.1
|
2020-10-29 10:52:45 -04:00
|
|
|
|
|
|
|
aliases:
|
|
|
|
- &defaults
|
|
|
|
docker:
|
|
|
|
- image: circleci/node:12-browsers
|
|
|
|
auth:
|
|
|
|
username: $DOCKERHUB_USERNAME
|
|
|
|
password: $DOCKERHUB_PASSWORD
|
2020-10-30 09:41:30 -04:00
|
|
|
working_directory: ~/repo
|
2020-10-30 17:18:40 -04:00
|
|
|
- &save_npm_cache
|
|
|
|
save_cache:
|
|
|
|
paths:
|
|
|
|
- node_modules
|
|
|
|
keys:
|
|
|
|
v1-npm-{{ checksum "package-lock.json" }}
|
2020-10-30 17:23:11 -04:00
|
|
|
- &restore_npm_cache
|
2020-10-30 17:18:40 -04:00
|
|
|
restore_cache:
|
|
|
|
keys:
|
|
|
|
- v1-npm-{{ checksum "package-lock.json" }}
|
|
|
|
- v1-npm-
|
2020-10-29 10:52:45 -04:00
|
|
|
jobs:
|
|
|
|
setup:
|
|
|
|
<<: *defaults
|
|
|
|
steps:
|
2020-10-29 15:56:05 -04:00
|
|
|
- checkout
|
2020-11-02 12:03:10 -05:00
|
|
|
- run:
|
|
|
|
name: "Set up Pip and install requirements"
|
|
|
|
command: |
|
|
|
|
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
|
|
|
|
python get-pip.py
|
|
|
|
pip install -r requirements.txt
|
2020-11-02 12:05:14 -05:00
|
|
|
- run:
|
2020-11-02 12:07:37 -05:00
|
|
|
name: "install npm packages"
|
2020-11-02 12:03:10 -05:00
|
|
|
command: |
|
|
|
|
npm --production=false ci
|
|
|
|
- run:
|
|
|
|
name: deploy
|
|
|
|
command: |
|
|
|
|
echo $CIRCLE_BRANCH
|
2020-10-30 17:19:09 -04:00
|
|
|
integration:
|
|
|
|
<<: *defaults
|
|
|
|
steps:
|
|
|
|
- checkout
|
2020-10-29 10:52:45 -04:00
|
|
|
|
2020-10-27 14:10:50 -04:00
|
|
|
workflows:
|
2020-10-29 10:52:45 -04:00
|
|
|
build-test-deploy:
|
2020-10-27 14:10:50 -04:00
|
|
|
jobs:
|
2020-10-29 10:52:45 -04:00
|
|
|
- setup:
|
2020-10-27 15:05:42 -04:00
|
|
|
filters:
|
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- circleci-project-setup # remove this before releasing
|