Skip to content

Commit

Permalink
Merge pull request #677 from DataDog/move-tests-to-circleci
Browse files Browse the repository at this point in the history
Getting rid of Travis in profit to Circle CI
  • Loading branch information
kbogtob committed Dec 27, 2019
2 parents 0d3cffd + 62b38d8 commit 59bd590
Show file tree
Hide file tree
Showing 5 changed files with 426 additions and 40 deletions.
29 changes: 22 additions & 7 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,31 @@ jobs:
KITCHEN_LOCAL_YAML: kitchen.docker.yml
steps:
- checkout
- run: curl -L https://www.chef.io/chef/install.sh | sudo bash -s -- -P chefdk -v 3.8
- run: 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
- run:
command: chef exec rake circle
name: Set Ruby version to 2.5.1
command: |
rvm install 2.5.1
echo . $(rvm 2.5.1 do rvm env --path) >> $BASH_ENV
- run:
name: Install bundler
command: gem install bundler:1.17.3
- run:
name: Check bundler version
command: bundle --version
- run:
name: Install dependencies with bundler
command: bundle install --path .bundle --without release
- run:
name: Showing gems versions in bundle
command: bundle list
- run:
name: Run specs
command: bundle exec rake
- run:
name: Execute Kitchen tests
command: bundle exec rake circle
no_output_timeout: 900


workflows:
version: 2
build_and_test:
Expand Down
27 changes: 0 additions & 27 deletions .travis.yml

This file was deleted.

14 changes: 9 additions & 5 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
source 'https://rubygems.org'

# Gems here are used to run `rake release`.
group :release do
gem 'emeril'
end

gem 'emeril'
gem 'rake'
gem 'chef', '= 14.10.9'
gem 'foodcritic', '= 11.4.0'
gem 'foodcritic', '~> 11.4.0'
gem 'cucumber-core', '~> 3.2.1'
gem 'chefspec'
gem 'cookstyle'
gem 'coveralls'
gem 'coveralls', '~> 0.8.19'
gem 'test-kitchen'
gem 'json_spec', '~> 1.1.0'
gem 'json_spec', '~> 1.1.4'
gem 'kitchen-vagrant'
gem 'kitchen-docker', '~> 2.3.0'
gem 'berkshelf', '~> 6.3'
gem 'rubocop', '~> 0.49.1'
Loading

0 comments on commit 59bd590

Please sign in to comment.