scratch-www/.circleci/config.yml
2020-10-30 17:23:11 -04:00

45 lines
1,018 B
YAML

version: 2.1
aliases:
- &defaults
docker:
- image: circleci/node:12-browsers
auth:
username: $DOCKERHUB_USERNAME
password: $DOCKERHUB_PASSWORD
working_directory: ~/repo
- &save_npm_cache
save_cache:
paths:
- node_modules
keys:
v1-npm-{{ checksum "package-lock.json" }}
- &restore_npm_cache
restore_cache:
keys:
- v1-npm-{{ checksum "package-lock.json" }}
- v1-npm-
jobs:
setup:
<<: *defaults
steps:
- checkout
- run: |
echo "Setup step is happening here"
npm --production=false ci
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python get-pip.py
pip install -r requirements.txt
integration:
<<: *defaults
steps:
- checkout
workflows:
build-test-deploy:
jobs:
- setup:
filters:
branches:
only:
- circleci-project-setup # remove this before releasing