From dc7cf40015bf3d8bb8a60cd91b25691f4afc5e4a Mon Sep 17 00:00:00 2001 From: Michal Migurski Date: Sun, 2 Feb 2020 16:49:33 -0800 Subject: [PATCH] Split Travis script into separate jobs and add apt cookbook test With kitchen-dokken in place, travis should now successfully run both the cookstyle script and individual kitchen tests as separate matrix builds. Matrix builds will run in parallel, and the global Travis 50min limit should apply to each separately ensuring that all cookbooks get tested. https://docs.travis-ci.com/user/build-matrix/ --- .travis.yml | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 87e77d6c7..631b5775d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,19 @@ sudo: false language: ruby cache: bundler -script: - - bundle exec cookstyle -f fuubar +services: + - docker +before_script: + # Put just enough Vagrant in the PATH to satisfy Test-Kitchen. No actual + # Vagrant or Virtualbox is run on Travis; this fake shim that echoes a + # recent Vagrant version is only here to allow tests to proceed below. + - sudo bash -c 'echo "echo Vagrant 2.0.0-fake" > /usr/bin/vagrant' + - sudo chmod +x /usr/bin/vagrant +jobs: + include: + - name: "Cookstyle" + script: + - bundle exec cookstyle -f fuubar + - name: "Kitchen Test Apt Cookbook" + script: + - bundle exec kitchen test apt-ubuntu-1804-ci -- 2.39.5