Skip to content

Commit

Permalink
Use CircleCI 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
rosylilly committed Aug 8, 2018
1 parent 45f75d6 commit ea4f762
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 22 deletions.
32 changes: 32 additions & 0 deletions .circleci/config.yml
@@ -0,0 +1,32 @@
version: 2

jobs:
build:
working_directory: ~/zengin-rb
docker:
- image: circleci/ruby:latest
steps:
- checkout
- run:
name: Checkout source-data
command: |
git submodule update --init
git submodule foreach 'git pull origin master'
- restore_cache:
keys:
- v1-bundle-{{ .Branch }}-{{ checksum "Gemfile" }}
- v1-bundle-{{ .Branch }}-
- run:
name: Dependency
command: |
gem install --no-document bundler
bundle install --jobs=8 --path=vendor
- save_cache:
key: v1-bundle-{{ .Branch }}-{{ checksum "Gemfile" }}
paths:
- ~/zengin-rb/.bundle
- ~/zengin-rb/vendor/bundle
- run:
name: Deployment
command: |
if [ "${CIRCLE_BRANCH}" = "master" ]; then ./bin/ci/deploy ; fi
22 changes: 0 additions & 22 deletions circle.yml

This file was deleted.

0 comments on commit ea4f762

Please sign in to comment.