summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2016-11-08 09:08:41 -0800
committerThom May <thom@may.lt>2016-11-08 17:08:41 +0000
commit618b8955b32b325f63dd47b17ec70f65b2e8b132 (patch)
tree2f09be26b0ea2cbe09e4ae0c795ca4b3fa2ae3d0
parent1d61e460675a540536bd4fc893b4bc6aa7070f21 (diff)
downloadchef-618b8955b32b325f63dd47b17ec70f65b2e8b132.tar.gz
Test on the latest fedora and fix yum failures in testing (#5525)
Use the latest fedora to avoid having to bump things every X months We need to make the cache afterwards. I ran into this same issue in the cron cookbook and I’ve updated the dnf_compat recipe in yum to do the same. Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--.travis.yml4
-rw-r--r--kitchen-tests/.kitchen.travis.yml5
2 files changed, 5 insertions, 4 deletions
diff --git a/.travis.yml b/.travis.yml
index 0c2ae0b153..d0a89ede06 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -246,11 +246,11 @@ matrix:
- sudo iptables -L DOCKER || ( echo "DOCKER iptables chain missing" ; sudo iptables -N DOCKER )
- cd kitchen-tests
script:
- - bundle exec kitchen test webapp-fedora-23
+ - bundle exec kitchen test webapp-fedora-latest
after_failure:
- cat .kitchen/logs/kitchen.log
env:
- - FEDORA=23
+ - FEDORA=latest
- KITCHEN_YAML=.kitchen.travis.yml
- rvm: 2.3.1
services: docker
diff --git a/kitchen-tests/.kitchen.travis.yml b/kitchen-tests/.kitchen.travis.yml
index 312764e9e4..6dd43d0879 100644
--- a/kitchen-tests/.kitchen.travis.yml
+++ b/kitchen-tests/.kitchen.travis.yml
@@ -75,12 +75,13 @@ platforms:
- RUN yum -y install which initscripts net-tools sudo wget
- RUN sed -i -e "s/Defaults.*requiretty.*/Defaults !requiretty/g" /etc/sudoers
-- name: fedora-23
+- name: fedora-latest
driver:
- image: fedora:23
+ image: fedora:latest
pid_one_command: /usr/lib/systemd/systemd
intermediate_instructions:
- RUN dnf -y install yum which initscripts rpm-build zlib-devel net-tools sudo wget
+ - RUN yum makecache
- RUN sed -i -e "s/Defaults.*requiretty.*/Defaults !requiretty/g" /etc/sudoers
- name: ubuntu-12.04