summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorJay Mundrawala <jdmundrawala@gmail.com>2015-08-17 12:22:47 -0500
committerJay Mundrawala <jdmundrawala@gmail.com>2015-11-25 08:05:50 -0800
commitb4230dcd1a7513e11bbb75ec3fd7f6fbb98b0131 (patch)
tree879fd0c9873cae118357c26354c13d3dca2d12e7 /.travis.yml
parentd6d79849e766669dff300cd39591ef2bffc2f225 (diff)
downloadchef-b4230dcd1a7513e11bbb75ec3fd7f6fbb98b0131.tar.gz
Run tests as sudo
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml4
1 files changed, 2 insertions, 2 deletions
diff --git a/.travis.yml b/.travis.yml
index 44317aaeff..160474514a 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,7 +1,6 @@
language: ruby
cache: bundler
-sudo: false
# Early warning system to catch if Rubygems breaks something
before_install:
# the new 2.5.0 rubygems is busted with 1.7.6 bundler, the
@@ -19,7 +18,8 @@ branches:
# do not run expensive spec tests on PRs, only on branches
script: "
echo '--color\n-fp' > .rspec;
-bundle exec rake spec;
+sudo sed -i -e 's/^Defaults\tsecure_path.*$//' /etc/sudoers;
+sudo -E $(which bundle) exec rake spec;
"
env: