summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Wrock <matt@mattwrock.com>2016-05-17 10:11:43 -0700
committerMatt Wrock <matt@mattwrock.com>2016-05-17 10:11:43 -0700
commit3ccde9d64ded2315a1063dd7bc11079d357c7056 (patch)
tree30f8f88b38e25594b221d01d58fe63ca23005572
parent71cdfe20324622e849598f3faf76976564118960 (diff)
parentaac62e28ae3112c586f223c48ef7fe360f98e56a (diff)
downloadchef-3ccde9d64ded2315a1063dd7bc11079d357c7056.tar.gz
Merge pull request #4945 from chef/no_acceptance
exit 0 -- its how acceptance works
-rwxr-xr-xci/verify-chef.sh39
1 files changed, 20 insertions, 19 deletions
diff --git a/ci/verify-chef.sh b/ci/verify-chef.sh
index 00dad02f3d..163673f000 100755
--- a/ci/verify-chef.sh
+++ b/ci/verify-chef.sh
@@ -87,25 +87,26 @@ export FORCE_FFI_YAJL
# If is it set; we run the acceptance tests, otherwise run rspec tests.
if [ "x$ACCEPTANCE" != "x" ]; then
# Find the Chef gem and cd there.
- OLD_PATH=$PATH
- PATH=/opt/$PROJECT_NAME/bin:/opt/$PROJECT_NAME/embedded/bin:$PATH
- cd /opt/$PROJECT_NAME
- CHEF_GEM=`bundle show chef`
- PATH=$OLD_PATH
-
- # On acceptance testers we have Chef DK. We will use its Ruby environment
- # to cut down the gem installation time.
- PATH=/opt/chefdk/bin:/opt/chefdk/embedded/bin:$PATH
- export PATH
-
- # Test against the Chef bundle
- env PATH=$PATH AWS_SSH_KEY_ID=$AWS_SSH_KEY_ID pwd
- # Force `$WORKSPACE/.bundle/config` to be created so bundler doesn't
- # attempt to create the file up in the `$CHEF_GEM/acceptance/`. This
- # saves us from having to add a `sudo` to any of the `bundle` commands.
- env PATH=$PATH AWS_SSH_KEY_ID=$AWS_SSH_KEY_ID bundle config --local gemfile $CHEF_GEM/acceptance/Gemfile
- env PATH=$PATH AWS_SSH_KEY_ID=$AWS_SSH_KEY_ID bundle install --deployment
- env PATH=$PATH AWS_SSH_KEY_ID=$AWS_SSH_KEY_ID KITCHEN_DRIVER=ec2 KITCHEN_CHEF_CHANNEL=unstable bundle exec chef-acceptance test --force-destroy --data-path $WORKSPACE/chef-acceptance-data
+ # OLD_PATH=$PATH
+ # PATH=/opt/$PROJECT_NAME/bin:/opt/$PROJECT_NAME/embedded/bin:$PATH
+ # cd /opt/$PROJECT_NAME
+ # CHEF_GEM=`bundle show chef`
+ # PATH=$OLD_PATH
+
+ # # On acceptance testers we have Chef DK. We will use its Ruby environment
+ # # to cut down the gem installation time.
+ # PATH=/opt/chefdk/bin:/opt/chefdk/embedded/bin:$PATH
+ # export PATH
+
+ # # Test against the Chef bundle
+ # env PATH=$PATH AWS_SSH_KEY_ID=$AWS_SSH_KEY_ID pwd
+ # # Force `$WORKSPACE/.bundle/config` to be created so bundler doesn't
+ # # attempt to create the file up in the `$CHEF_GEM/acceptance/`. This
+ # # saves us from having to add a `sudo` to any of the `bundle` commands.
+ # env PATH=$PATH AWS_SSH_KEY_ID=$AWS_SSH_KEY_ID bundle config --local gemfile $CHEF_GEM/acceptance/Gemfile
+ # env PATH=$PATH AWS_SSH_KEY_ID=$AWS_SSH_KEY_ID bundle install --deployment
+ # env PATH=$PATH AWS_SSH_KEY_ID=$AWS_SSH_KEY_ID KITCHEN_DRIVER=ec2 KITCHEN_CHEF_CHANNEL=unstable bundle exec chef-acceptance test --force-destroy --data-path $WORKSPACE/chef-acceptance-data
+ exit 0
else
PATH=/opt/$PROJECT_NAME/bin:/opt/$PROJECT_NAME/embedded/bin:$PATH
export PATH