rapid7/metasploit-framework — pull request #4499 by limhoff-r7 (2014-12-31 20:31:27+00:00)
Title: Switch to docker container for faster build startup and bundler cache

MSP-11931

Remove the need for `sudo` by not installing `pcap`. None of the current specs or features use `pcap`, so there is no loss in test coverage. Enable docker builds with `sudo: false`. With the docker build, we can start using travis-ci's bundler cache with `cache: bundler`. Using the bundler cache shaved ~2 minutes of the build time for each job between [just using the docker build](https://travis-ci.org/limhoff-r7/metasploit-framework/builds/45569440) and [with the cache](https://travis-ci.org/limhoff-r7/metasploit-framework/builds/45570948). A lot of the jobs are around 4 minutes, so this effectively cuts the build time in half. For reference, [without containers](https://travis-ci.org/limhoff-r7/metasploit-framework/builds/45569194) the jobs on master are slower.

# Verification Steps
- [ ] Look at the [build log](https://travis-ci.org/limhoff-r7/metasploit-framework/jobs/45570949)
- [ ] 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-model/vendor/bundle to cache`