Skip to content

Commit

Permalink
Migrate to CircleCI 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
serima committed Aug 26, 2017
1 parent 0354f6d commit df04594
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .circleci/config.yml
@@ -0,0 +1,25 @@
version: 2
jobs:
build:
working_directory: ~/danger
docker:
- image: ruby:2.1
environment:
- RAILS_ENV=test
- RACK_ENV=test
steps:
- checkout
- run: gem update --system 2.4.8
- run: gem install bundler
- restore_cache:
key: gem-cache-{{ .Branch }}-{{ checksum "Gemfile" }}
- run: bundle install --path vendor/bundle
- save_cache:
key: gem-cache-{{ .Branch }}-{{ checksum "Gemfile" }}
paths:
- vendor/bundle
- run: git config --global user.email "danger@example.com"
- run: git config --global user.name "Danger McShane"
- run: bundle exec rake specs
- run: '[ ! -z $DANGER_GITHUB_API_TOKEN ] && bundle exec danger || echo "Skipping Danger for External Contributor"'
- run: bundle exec danger init --mousey --impatient

0 comments on commit df04594

Please sign in to comment.