Add .travis.yml for OSX testing #835

Merged
merged 34 commits into from Jan 14, 2017

Projects

None yet

2 participants

@jacobbednarz
Member

our-boxen needs better integration testing, let's try and see if
Travis CI will fulfill that need.

jacobbednarz added some commits Nov 15, 2016
@jacobbednarz jacobbednarz Add .travis.yml for OSX testing
`our-boxen` needs better integration testing, let's try and see if
Travis CI will fulfill that need.
f8da3b8
@jacobbednarz jacobbednarz define ruby version
fe488e0
@jacobbednarz jacobbednarz add base steps for getting the repository in the right spot
edbf4c3
@jacobbednarz jacobbednarz debugging travis paths
af00ac5
@jacobbednarz jacobbednarz more debugging
c9dba29
@jacobbednarz jacobbednarz add symlinks
9622cc3
@jacobbednarz jacobbednarz run the script!
b01bee6
@jacobbednarz jacobbednarz don't try and update
c024599
@jacobbednarz jacobbednarz use mri 2.0
9fbca28
@jacobbednarz jacobbednarz add mri 2.1
f160edf
@jacobbednarz jacobbednarz define version of bundler to use
0942e82
@jacobbednarz jacobbednarz swap to using bundler args
4307167
@jacobbednarz jacobbednarz do not install bundler again
e10605e
@jacobbednarz jacobbednarz remove double bootstrapping
8affe87
@jacobbednarz jacobbednarz Add CI user details
This adds the CI login/token to allow it to connect to GitHub and give
it the correct permissions.
57a1350
@jacobbednarz jacobbednarz Move env to global
8ede29f
@jacobbednarz jacobbednarz Creds, take 2
7de0491
@jacobbednarz jacobbednarz Get rid of RVM to use rbenv
47e91c7
@jacobbednarz jacobbednarz reallly force it to uninstall
1aa9365
@jacobbednarz jacobbednarz :facepalm: why install RVM and then uninstall?
32b7942
@jacobbednarz jacobbednarz Redo deps
3d38b36
@jacobbednarz jacobbednarz install bundler for system ruby
7e75c8c
@jacobbednarz jacobbednarz use sudo
662460f
@jacobbednarz jacobbednarz Use correct delimiter for bundler --without options c8afb9a
@jacobbednarz jacobbednarz source Boxen env goodness 51eb49b
@jacobbednarz jacobbednarz Add serverspec and basic spec
Creates the basic serverspec implementation and runs it after the
Boxen run.
a6727c4
@jacobbednarz jacobbednarz Install the test group for bundler
6eff4bb
@jacobbednarz jacobbednarz Use `travis_wait` for long running tasks
I've updated the long running scripts to use `travis_wait`[1] to ensure
that if the step task longer than 10 minutes, or doesn't produce output
for 10 minutes, the job is not marked as failed.

[1]: https://docs.travis-ci.com/user/common-build-problems/#Timeouts-installing-dependencies
ddcac0a
@jacobbednarz jacobbednarz Use a longer timeout for Boxen run
ceee0c9
@jacobbednarz jacobbednarz Try using --verbose to keep getting output
72cdd28
@jacobbednarz jacobbednarz Try with static access token instead
c45cc69
@jacobbednarz jacobbednarz Wrap Boxen in travis_wait again
aa55341
@jacobbednarz jacobbednarz Remove debug
3dcdcb5
@jacobbednarz jacobbednarz Expect puppet to return exit code 2
Puppet exits with a status code of 2 when changes have been made - which
is what we are expecting here. Unfortunately, CI treats non-zero exit
codes as a failure. This updates the command to only fail if the exit
code *isn't* 2.
4fd2d7d
@jacobbednarz
Member
jacobbednarz commented Jan 13, 2017 edited

After much fiddling and support from the folks at Travis CI, I've managed to get this building and running serverspec! โœจ

This should allow us to know start writing test coverage for the actual Boxen run instead of needing to spin up countless VM's.

I know a few people have been interested in doing this so I welcome everyone to check it out and provide some feedback!

cc @petems @radeksimko @n0ts @salimane @hirocaster @seanknox

@salimane
Member

@jacobbednarz awesome ๐Ÿ‘

@jacobbednarz jacobbednarz merged commit a61b60d into master Jan 14, 2017

2 checks passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
continuous-integration/travis-ci/push The Travis CI build passed
Details
@jacobbednarz jacobbednarz deleted the travis-osx-test branch Jan 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment