Skip to content

Commit

Permalink
Change deployment configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
jessamynsmith committed Jun 1, 2019
1 parent 9072eee commit c77b512
Showing 1 changed file with 2 additions and 28 deletions.
30 changes: 2 additions & 28 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,37 +62,11 @@ jobs:
PYTHONPATH=. coveralls
deploy:
docker:
- image: circleci/python:3.6.5-jessie-node
- image: buildpack-deps:trusty
steps:
- checkout
- restore_cache:
key: deps-py-{{ .Branch }}-{{ checksum "requirements.txt" }}
- restore_cache:
key: deps-npm-{{ .Branch }}-{{ checksum "package.json" }}
- restore_cache:
key: deps-bower-{{ .Branch }}-{{ checksum "bower.json" }}
- run:
# https://discuss.circleci.com/t/circleci-python-docker-images-disallow-pip-install-due-to-directory-ownership/12504
name: Install Python deps in a venv
command: |
python3 -m venv venv
. venv/bin/activate
pip install -r requirements.txt
- save_cache:
key: deps-py-{{ .Branch }}-{{ checksum "requirements.txt" }}
paths:
- "venv"
- save_cache:
key: deps-npm-{{ .Branch }}-{{ checksum "package.json" }}
paths:
- "node_modules"
- save_cache:
key: deps-bower-{{ .Branch }}-{{ checksum "bower.json" }}
paths:
- "bower_components"
- run:
name: Deploy Master to Heroku
command: |
npm install
. venv/bin/activate
wget -qO- https://cli-assets.heroku.com/install-ubuntu.sh | bash
bash scripts/deploy_to_heroku.sh circle

0 comments on commit c77b512

Please sign in to comment.