rapid7/metasploit_data_models — pull request #84 by limhoff-r7 (2014-12-31 15:51:57+00:00)
Title: Containerized build and other build improvements

MSP-11929

Turn on containerized builds using `sudo: false` for faster build startup. Turn on bundle caching with `cache: bundler` for faster build install. Replace `jruby-19mode` with `jruby-1.7.17` to work around https://github.com/travis-ci/travis-ci/issues/3067 and https://github.com/wayneeseguin/rvm/issues/3242, which is unrelated to this chore, but a currently problem with travis-ci's rvm install and so would block any builds. Fix bundler requires in `Rakefile` to make it work when the bundle is uncached. `bundle exec rake db:setup` instead of just `rake db:setup` for bundler cache compatibility. Remove rbx-2.2 to speed up overall build time as the rbx-2.2 build never succeeds and so just eats up job slots. Clean up quoting in .travis.yml for compatibility with travis lint.

# Verification
- [ ] Look at the [build log](https://travis-ci.org/rapid7/metasploit_data_models/jobs/45549951)
- [ ] VERIFY containerized message in log: `This job is running on container-based infrastructure, which does not allow use of 'sudo', setuid and setguid executables.`
- [ ] VERIFY bundler cache in log: `adding /home/travis/build/rapid7/metasploit_data_models/vendor/bundle to cache`

# Post-merge Steps

Perform these steps prior to pushing to master or the build will be broke on master.

## Version
- [ ] Edit `lib/metasploit_data_models/version.rb`
- [ ] Remove `PRERELEASE` and its comment as `PRERELEASE` is not defined on master.

## Gem build
- [ ] gem build *.gemspec
- [ ] VERIFY the gem has no '.pre' version suffix.

## RSpec
- [ ] `rake spec`
- [ ] VERIFY version examples pass without failures

## Commit & Push
- [ ] `git commit -a`
- [ ] `git push origin master`

# Release

Complete these steps on master

## Version

- `PATCH` has already been incremented

## Rubygems

- No release to rubygems as this is a build infrastructure change only