[circleci] migrating to v2
[circleci] fix schema
[circleci] checkout code
ADD
.circleci/config.yml
+version: 2
+jobs:
+ test:
+ docker:
+ - image: circleci/ruby:2.4.4-stretch-browsers
+ environment:
+ KITCHEN_LOCAL_YAML: .kitchen.docker.yml
+ steps:
+ - checkout
+ - restore_cache:
+ key: chefdk-0.12.0
+ - run: test -e /opt/chefdk || curl -L https://www.chef.io/chef/install.sh | sudo bash -s -- -P chefdk -v 2.3.1
+ - run: test -e /home/circleci/.chefdk || chef gem install kitchen-docker -v '~> 2.3.0'
+ - run: eval "$(/opt/chefdk/bin/chef shell-init bash)"
+ - run: chef --version
+ - run: chef gem query -d chefspec rubocop foodcritic rake kitchen-docker
+ - setup_remote_docker
+ - run: chef exec rake circle
+ - save_cache:
+ key: chefdk-2.3.1
+ paths:
+ - /opt/chefdk
+ - ~/.chefdk
+
+workflows:
+ version: 2
+ build_and_test:
+ jobs:
+ - test

MODIFY
.rubocop.yml
.rubocop.yml
@@ -32,6 +32,12 @@ Metrics/MethodLength:
Style/BlockDelimiters:
Enabled: false
+Style/FrozenStringLiteralComment:
+ Enabled: false
+
+Style/SafeNavigation:
+ Enabled: false
+
# TODO: add encoding headers
Style/Encoding:
Enabled: false

DELETE
circle.yml
-machine:
- environment:
- KITCHEN_LOCAL_YAML: .kitchen.docker.yml
- services:
- - docker
-
-dependencies:
- override:
- - curl -L https://www.chef.io/chef/install.sh | sudo bash -s -- -P chefdk -v 0.12.0
- - chef gem install kitchen-docker -v '~> 2.3.0'
- cache_directories:
- - "~/.chefdk"
-
-test:
- pre:
- - eval "$(/opt/chefdk/bin/chef shell-init bash)"
- override:
- - chef --version
- - chef gem query -d chefspec rubocop foodcritic rake kitchen-docker
- - chef exec rake circle:
- parallel: true
- timeout: 900
-
-general:
- artifacts:
- - ".kitchen/logs/"

MODIFY
test/integration/datadog_etcd/serverspec/Gemfile
test/integration/datadog_etcd/serverspec/Gemfile
source 'https://rubygems.org'
-gem 'json_spec', '~> 1.1'
+gem 'json_spec', '~> 1.1.0'

MODIFY
test/integration/helpers/serverspec/Gemfile
test/integration/helpers/serverspec/Gemfile
source 'https://rubygems.org'
-gem 'json_spec', '~> 1.1'
+gem 'json_spec', '~> 1.1.0'

[circleci] migrating to v2

[circleci] fix schema

[circleci] checkout code