.circleci/config.yml in rsg-0.0.1 vs .circleci/config.yml in rsg-0.1.0
- old
+ new
@@ -1,13 +1,54 @@
version: 2.1
jobs:
build:
docker:
- - image: ruby:3.0.0
+ - image: cimg/ruby:3.0
steps:
- checkout
+
- run:
- name: Run the default task
+ name: "Configure git client"
command: |
- gem install bundler -v 2.2.7
+ git config --global user.name "CircleCI"
+ git config --global user.email "circle@example.com"
+
+ - restore_cache:
+ keys:
+ - v1-{{ .Branch }}-{{ checksum "Gemfile.lock" }}-{{ .Revision }}
+ - v1-{{ .Branch }}-{{ checksum "Gemfile.lock" }}-
+ - v1-{{ .Branch }}-
+ - v1-master-
+
+ - run:
+ name: Install dependencies
+ command: |
bundle install
+
+ - run:
+ name: Test scaffold of basic application, with no extras
+ command: |
+ ./exe/rsg --path `pwd` --template ./spec/acceptance/fixtures/basic-template.rb /tmp/basic-app
+ cd /tmp/basic-app
+ bundle install
bundle exec rake
+ if [[ $(git log --oneline | wc -l) -le 1 ]]; then
+ echo "No commits found"
+ exit 1
+ fi
+
+ - run:
+ name: Test scaffold of basic API application, with no extras
+ command: |
+ ./exe/rsg --api --path `pwd` --template ./spec/acceptance/fixtures/basic-template.rb /tmp/basic-api
+ cd /tmp/basic-api
+ bundle install
+ bundle exec rake
+ if [[ $(git log --oneline | wc -l) -le 1 ]]; then
+ echo "No commits found"
+ exit 1
+ fi
+
+ - save_cache:
+ key: v1-{{ .Branch }}-{{ checksum "Gemfile.lock" }}-{{ .Revision }}
+ paths:
+ - ~/.rubygems