Skip to content

Commit

Permalink
Merge pull request #90 from plumSemPy/fix/update-to-circleci-2.0
Browse files Browse the repository at this point in the history
Fix/update to circleci 2.0
  • Loading branch information
leonhartX authored Feb 8, 2020
2 parents 041abb8 + 8d3778e commit d46269b
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 19 deletions.
42 changes: 42 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
defaults: &defaults
machine: true
working_directory: ~/gas-github

version: 2
jobs:
build-and-test:
<<: *defaults
steps:
- checkout
- run: source $NVM_DIR/nvm.sh && nvm install 6.1.0
- run: source $NVM_DIR/nvm.sh && nvm use 6.1.0
- run: npm install --dev
- run: bundle install
- run: danger

deploy-to-production:
<<: *defaults
steps:
- checkout
- run: zip -r gas-github.zip . -x '\.*' -x 'Dangerfile' -x 'Gemfile*'
- store_artifacts:
path: ./gas-github.zip

workflows:
version: 2
build-test:
jobs:
- build-and-test

build-test-deploy:
jobs:
- build-and-test:
filters:
branches:
only: master
- deploy-to-production:
requires:
- build-and-test
filters:
branches:
only: master
19 changes: 0 additions & 19 deletions circle.yml

This file was deleted.

0 comments on commit d46269b

Please sign in to comment.