-
Notifications
You must be signed in to change notification settings - Fork 7
How I set up Travis CI
Here's travis' page on set up.
It's fine, except the .travis.yml
example isn't very explicit. Here's ours:
rvm: '2.2.1'
script:
- bundle exec bin/rake db:create
- bundle exec bin/rake db:migrate
- bundle exec rspec spec
The rvm's just our ruby version. You can set a bunch of different versions if you want to make sure your code is accessible to people on different ruby versions, but that's not really necessary when it's just the 5 of us working on it. Also, including pre v.2 ruby in here forces you to rewrite some phrases in old notation.
The next three lines are just standard for rails - just think of what you'd have to tell a new member of the team in setting up their machine to work on the project, which is what travis has to do.
If we were working on a js-heavy project with a lot of bower there'd be a lot of work to do here, but rails as always saves you trouble as long as you're doing something 'normal'.