.circleci/config.yml in jace-0.0.3 vs .circleci/config.yml in jace-0.1.0
- old
+ new
@@ -1,15 +1,30 @@
version: 2
workflows:
version: 2
- test:
+ test-and-build:
jobs:
- - build-and-release
+ - test:
+ filters:
+ tags:
+ only: /.*/
+ - checks:
+ filters:
+ tags:
+ only: /.*/
+ - build-and-release:
+ requires: [test, checks]
+ filters:
+ tags:
+ only: /\d+\.\d+\.\d+/
+ branches:
+ only:
+ - master
jobs:
test:
docker:
- - image: darthjee/circleci_ruby_gems:0.5.2
+ - image: darthjee/circleci_ruby_270:1.1.0
environment:
PROJECT: jace
steps:
- checkout
- run:
@@ -20,16 +35,26 @@
command: bundle install
- run:
name: RSpec
command: bundle exec rspec
- run:
- name: Rubocop
- command: rubocop
- - run:
name: Coverage Test Report
command: cc-test-reporter after-build --exit-code $?
+ checks:
+ docker:
+ - image: darthjee/circleci_ruby_270:1.1.0
+ environment:
+ PROJECT: jace
+ steps:
+ - checkout
- run:
+ name: Bundle Install
+ command: bundle install
+ - run:
+ name: Rubocop
+ command: rubocop
+ - run:
name: Yardstick coverage check
command: bundle exec rake verify_measurements
- run:
name: Check version documentation
command: check_readme.sh
@@ -39,22 +64,22 @@
- run:
name: Check unit tests
command: check_specs
build-and-release:
docker:
- - image: darthjee/circleci_ruby_gems:0.5.2
+ - image: darthjee/circleci_ruby_270:1.1.0
environment:
PROJECT: jace
steps:
- checkout
- run:
+ name: Bundle Install
+ command: bundle install
+ - run:
name: Signin
- command: scripts/build.sh signin
+ command: build_gem.sh signin
- run:
- name: Degub
- command: cat ~/.gem/credentials
- - run:
name: Build Gem
- command: scripts/build.sh build
+ command: build_gem.sh build
- run:
name: Push Gem
- command: scripts/build.sh push
+ command: build_gem.sh push