Commit graph

8 commits

Author SHA1 Message Date
kirby@puppetlabs.com
82f141793b Update jruby version for travis to 9.1.13.0
This commit updates travis configuration to replace jruby 1.7.13 with 9.1.13.0. Without this change the jruby version tested is out of date and does not support features like safe_load, which affects issue #243.
2018-01-11 11:04:42 -08:00
Samuel
62643b237f (POOLER-96) Setting the Rubygems version (#246)
* (POOLER-96) Setting the Rubygems version

travis uses the latest bundler 1.16 which installs the newer rubygems and I think that might be why it's failing now when downgrading only bundler to version 1.12
This is a test to see if travis will pass.

* also update bundler to 1.15.4

* Update .travis.yml

* update jruby to 1.7.13

* print bundle version

* specify bundler version 1.15.4
2017-11-28 10:43:45 -08:00
Glenn Sarti
36310e381a (maint) Add rubocop checks to Travis
This commit adds rubocop checks to Travis for PR CI.  Any rubocop failures will
not fail the build yet.  Fixes for rubocop violations will happen in later
commits.
2017-02-10 13:33:36 -08:00
Glenn Sarti
926eb47940 (maint) Remove Ruby 1.9.3 testing from Travis
Ruby 1.9.3 is end of life, and now longer bundles due to later Nokogiri 1.7.0.1
requiring Ruby 2.1 or above.  This commit removes ruby 1.9.3 from Travis
testing.
2017-01-24 14:59:14 -08:00
Rick Bradley
9b44c2ffc4 (maint) Add a temporary shim to fix jruby travis build
This is necessary until the bundler + Jruby issues are resolved:

 - https://github.com/bundler/bundler/issues/4975
 - https://github.com/bundler/bundler/issues/4984
2016-09-14 15:45:36 -07:00
Rick Bradley
26ca390b4c Improved tests for vmpooler (#152)
* Add redis to our travis runs

* De-mockistify v1/token specs; use real redis.

Open questions:

 - Do we need to do better cleanup here?
 - Should we be using a separate database to prevent clobbering other local db's?

* Remove mockist tests from main suite.

* (MAINT) gitignore some common files

* (maint) Clean up some of the /vm/ tests

* (maint) Convert specs for /vm/template

* (maint) Clean up, reorganize specs

* (maint) Move extracted spec helper methods to spec_helper

* (maint) rename create_vm -> create_ready_vm

* (WIP) add partially-converted /vm/hostname specs

* (maint) clean up vm_spec

* (WIP) notes for next steps

* (maint) Define :config in token tests

Miscellaneous whitespace cleanup.

* (maint) Lift #redis definition into spec helper library

* (maint) drop unneeded clear_pool helper

Given the way we're flushing redis (which seems super performant), we don't
need to clear pools any more at the beginning of tests.

* (maint) Drop clear_pool from vm/template specs

* (maint) Update vm/hostname tag and lifetime specs

* (maint) Convert vm deletion specs

* (maint) Convert specs for vm snapshot operations

* (maint) Drop now-obsolete v1_spec.rb

* (maint) cosmetic cleanup in spec helper

* (maint) begin de-mockistifying api_spec.rb

* (maint) repair incorrect test

The mockist version of the test allows redis' scard to return nil, which
it does not actually do in real life. Verified the behavior in the code
via a debugger. Fixed the test.

* (maint) finish converting dashboard specs

* (maint) rename api_spec to dashboard_spec

* (maint) Don't clobber default redis database when running specs
2016-06-07 16:13:39 -05:00
Scott Schneider
705644756f Use dep caching and containers 2015-07-07 12:52:55 -07:00
Colin
e57ee075f2 (QENG-2246) Add Travis CI
This commit adds a Rakefile, Gemfile, and Travis CI config file.

The Rakefile contains two tasks: test and junit. Both targets execute
the spec tests, with the difference being how the results are presented.

The Gemfile defines dependencies and a test group. To install just the
gems needed for running the application, execute:
  * `bundle install --without test`

The new .travis.yml file is for Travis CI and targets the major ruby
versions.
2015-07-06 11:24:31 -07:00