Skip to content

Commit

Permalink
Apply changes from @gordonsyme
Browse files Browse the repository at this point in the history
  • Loading branch information
Zachary Scott committed Jul 17, 2017
1 parent 2651f85 commit 27a807d
Showing 1 changed file with 5 additions and 26 deletions.
31 changes: 5 additions & 26 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,13 @@
version: 2.0

jobs:
checkout_code:
docker:
- image: circleci/ruby:2.4-node
- image: circleci/postgres:9.4.12-alpine
working_directory: /home/circleci/circleci-demo-workflows
steps:
- checkout
- persist_to_workspace:
root: .
paths: .

bundle_dependencies:
docker:
- image: circleci/ruby:2.4-node
- image: circleci/postgres:9.4.12-alpine
working_directory: /home/circleci/circleci-demo-workflows
steps:
- checkout
- attach_workspace:
at: /home/circleci/circleci-demo-workflows
- restore_cache:
Expand All @@ -38,10 +28,9 @@ jobs:
- image: circleci/postgres:9.4.12-alpine
working_directory: /home/circleci/circleci-demo-workflows
steps:
- checkout
- attach_workspace:
at: /home/circleci/circleci-demo-workflows
- attach_workspace:
at: vendor/bundle
- run: bundle --path vendor/bundle
- run: bundle exec rake db:create db:schema:load
- run:
Expand All @@ -54,10 +43,9 @@ jobs:
- image: circleci/postgres:9.4.12-alpine
working_directory: /home/circleci/circleci-demo-workflows
steps:
- checkout
- attach_workspace:
at: /home/circleci/circleci-demo-workflows
- attach_workspace:
at: vendor/bundle
- run: bundle --path vendor/bundle
- run:
name: Precompile assets
Expand All @@ -73,12 +61,9 @@ jobs:
environment:
- HEROKU_APP: safe-wildwood-45845
steps:
- checkout
- attach_workspace:
at: /home/circleci/circleci-demo-workflows
- attach_workspace:
at: vendor/bundle
- attach_workspace:
at: public/assets
- run:
name: Setup Heroku
command: bash .circleci/setup-heroku.sh
Expand All @@ -93,20 +78,14 @@ workflows:
version: 2
build-and-deploy:
jobs:
- checkout_code
- bundle_dependencies:
requires:
- checkout_code
- bundle_dependencies
- rake_test:
requires:
- checkout_code
- bundle_dependencies
- precompile_assets:
requires:
- checkout_code
- bundle_dependencies
- deploy:
requires:
- checkout_code
- rake_test
- precompile_assets

0 comments on commit 27a807d

Please sign in to comment.