]> git.openstreetmap.org Git - chef.git/blobdiff - .travis.yml
Split Travis script into separate jobs and add apt cookbook test
[chef.git] / .travis.yml
index 87e77d6c7922340892c0106e151e4b1c0900a7eb..631b5775de1792d42c03ad30abc388d9d3781c27 100644 (file)
@@ -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