diff options
author | John Keiser <john@johnkeiser.com> | 2016-04-19 12:01:39 -0700 |
---|---|---|
committer | John Keiser <john@johnkeiser.com> | 2016-04-19 12:01:39 -0700 |
commit | 9d88f3cc45fe9b64ce9ebc5502559b57d6820e72 (patch) | |
tree | 9c73ccba88d95074331538f735d1461d57844902 /tasks/dependencies.rb | |
parent | 878086dfbe486638f2ff69f010f2cf7d37aee38a (diff) | |
parent | 0ce002d47405c0178b1016a8d803e13e5cfd823e (diff) | |
download | chef-9d88f3cc45fe9b64ce9ebc5502559b57d6820e72.tar.gz |
Merge pull request #4845 from chef/jk/activesupport-tests
Run activesupport tests in Travis
Diffstat (limited to 'tasks/dependencies.rb')
-rw-r--r-- | tasks/dependencies.rb | 28 |
1 files changed, 2 insertions, 26 deletions
diff --git a/tasks/dependencies.rb b/tasks/dependencies.rb index eb5b20d1bb..2faf3b883a 100644 --- a/tasks/dependencies.rb +++ b/tasks/dependencies.rb @@ -141,31 +141,7 @@ namespace :dependencies do end end end - - # Find out if we're using the latest gems we can (so we don't regress versions) - desc "Check for gems that are not at the latest released version, and report if anything not in ACCEPTABLE_OUTDATED_GEMS (version_policy.rb) is out of date." - task :check_outdated do - extend BundleUtil - puts "" - puts "-------------------------------------------------------------------" - puts "Checking for outdated gems ..." - puts "-------------------------------------------------------------------" - # TODO check for outdated windows gems too - with_bundle_unfrozen do - bundle_outdated = bundle("outdated", extract_output: true) - puts bundle_outdated - outdated_gems = parse_bundle_outdated(bundle_outdated).map { |line, gem_name| gem_name } - # Weed out the acceptable ones - outdated_gems = outdated_gems.reject { |gem_name| ACCEPTABLE_OUTDATED_GEMS.include?(gem_name) } - if outdated_gems.empty? - puts "" - puts "SUCCESS!" - else - raise "ERROR: outdated gems: #{outdated_gems.join(", ")}. Either fix them or add them to ACCEPTABLE_OUTDATED_GEMS in #{__FILE__}." - end - end - end end desc "Update all dependencies and check for outdated gems. Call dependencies[conservative] to update as little as possible." -task :dependencies, [:conservative] => [ "dependencies:update", "dependencies:check_outdated" ] -task :update, [:conservative] => [ "dependencies:update", "dependencies:check_outdated"] +task :dependencies, [:conservative] => [ "dependencies:update", "bundle:outdated" ] +task :update, [:conservative] => [ "dependencies:update", "bundle:outdated"] |