diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2016-05-02 14:38:10 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2016-05-02 14:38:10 -0700 |
commit | 55b50dd6544391741543622041d51ff7acc1a8c2 (patch) | |
tree | 806923128c4f2f28720eb5cbc939743292bf63d2 | |
parent | 8b11ace0440e1340e6753468705a9184573d5571 (diff) | |
parent | 173276889724a623a6bccc9f10b1a872d4f75643 (diff) | |
download | chef-55b50dd6544391741543622041d51ff7acc1a8c2.tar.gz |
Merge pull request #4879 from chef/lcg/redundant
remove tasks/bin/run_chef_tests; remove commented chef_rewind test; document bundler args
-rw-r--r-- | .travis.yml | 35 | ||||
-rwxr-xr-x | tasks/bin/run_chef_tests | 16 |
2 files changed, 24 insertions, 27 deletions
diff --git a/.travis.yml b/.travis.yml index 0d977ece31..45989a6bb2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,6 +10,13 @@ before_install: bundler_args: --without changelog development docgen guard maintenance omnibus_package tools aix bsd mac_os_x solaris windows --frozen +before_script: + # force all .rspec tests into progress display to reduce line count + - echo --color > .rspec + - echo -fp >> .rspec + # necessary for sudo: true tests, ingore failures on tests invoked with sudo: false + - sudo sed -i -e 's/^Defaults\tsecure_path.*$//' /etc/sudoers || true + # do not run expensive spec tests on PRs, only on branches branches: only: @@ -25,24 +32,35 @@ matrix: include: - rvm: 2.1 sudo: true - script: tasks/bin/run_chef_tests + script: sudo -E $(which bundle) exec rake spec; + # also remove integration / external tests bundler_args: --without changelog development docgen guard integration maintenance omnibus_package tools aix bsd mac_os_x solaris windows --frozen - rvm: 2.2 sudo: true - script: tasks/bin/run_chef_tests + script: sudo -E $(which bundle) exec rake spec; + # also remove integration / external tests bundler_args: --without changelog development docgen guard integration maintenance omnibus_package tools aix bsd mac_os_x solaris windows --frozen - rvm: 2.3.0 sudo: true - script: tasks/bin/run_chef_tests + script: sudo -E $(which bundle) exec rake spec; + # also remove integration / external tests + bundler_args: --without changelog development docgen guard integration maintenance omnibus_package tools aix bsd mac_os_x solaris windows --frozen + - rvm: rbx + sudo: true + script: sudo -E $(which bundle) exec rake spec; + # also remove integration / external tests bundler_args: --without changelog development docgen guard integration maintenance omnibus_package tools aix bsd mac_os_x solaris windows --frozen - env: CHEFSTYLE: 1 rvm: 2.1 script: bundle exec rake style + # also remove integration / external tests bundler_args: --without changelog development docgen guard integration maintenance omnibus_package tools aix bsd mac_os_x solaris windows --frozen - - rvm: rbx - sudo: true - script: tasks/bin/run_chef_tests + - env: + AUDIT_CHECK: 1 + rvm: 2.1 + script: bundle exec bundle-audit check --update + # also remove integration / external tests bundler_args: --without changelog development docgen guard integration maintenance omnibus_package tools aix bsd mac_os_x solaris windows --frozen # # External tests @@ -55,11 +73,6 @@ matrix: TEST_GEM: chef-provisioning-aws script: tasks/bin/run_external_test $TEST_GEM rake spec rvm: 2.2 -# requires vagrant -# - env: TEST_GEM=chef-rewind -# script: tasks/bin/run_external_test $TEST_GEM "rake spec" -# bundler_args: --without development -# rvm: 2.2 - env: TEST_GEM: chef-sugar script: tasks/bin/run_external_test $TEST_GEM rake diff --git a/tasks/bin/run_chef_tests b/tasks/bin/run_chef_tests deleted file mode 100755 index a128e59aec..0000000000 --- a/tasks/bin/run_chef_tests +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/bash - -# Fail fast (e) and echo commands (vx) -set -evx - -echo --color > .rspec -echo -fp >> .rspec - -sudo sed -i -e 's/^Defaults\tsecure_path.*$//' /etc/sudoers; -# If we have any args, just run the given command -if [ -n "$1" ]; then - sudo -E $(which bundle) exec $@; -else - sudo -E $(which bundle) exec rake spec; - bundle exec bundle-audit check --update; -fi |