diff options
author | Colby Swandale <colby@taplaboratories.com> | 2017-05-15 22:50:15 +1000 |
---|---|---|
committer | Colby Swandale <colby@taplaboratories.com> | 2017-05-15 22:52:35 +1000 |
commit | 8db712629718c4254b71fd00f21517b38638ff18 (patch) | |
tree | 841fd85f66f0c22809fd47c5097c4bbcfbbe0ad6 | |
parent | 31297d10a33e095e2f4b523b99264f777eb0238d (diff) | |
download | bundler-colby/travis-build-stages.tar.gz |
add travis build stage for rubocopcolby/travis-build-stages
-rw-r--r-- | .travis.yml | 9 | ||||
-rw-r--r-- | Rakefile | 5 |
2 files changed, 8 insertions, 6 deletions
diff --git a/.travis.yml b/.travis.yml index d257d827c4..952a78ab7c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -41,7 +41,11 @@ env: # Test the latest rubygems release with all of our supported rubies - RGV=v2.6.8 -matrix: +stages: + - rubocop + - test + +jobs: include: # Ruby 2.4, Rubygems 2.6.8 and up # Ruby 2.3, Rubygems 2.5.1 and up @@ -100,6 +104,9 @@ matrix: # Ruby-head (we want to know how we're doing, but not fail the build) - rvm: ruby-head env: RGV=master + - stage: rubocop + script: rake rubocop + rvm: 2.4.1 allow_failures: - rvm: 1.8.7 @@ -190,11 +190,6 @@ begin task :travis do rg = ENV["RGV"] || raise("RubyGems version is required on Travis!") - if RUBY_VERSION >= "2.0.0" - puts "\n\e[1;33m[Travis CI] Running bundler linter\e[m\n\n" - Rake::Task["rubocop"].invoke - end - puts "\n\e[1;33m[Travis CI] Running bundler specs against RubyGems #{rg}\e[m\n\n" specs = safe_task { Rake::Task["spec:rubygems:#{rg}"].invoke } |