aboutsummaryrefslogtreecommitdiffstats
path: root/.travis.yml
blob: 1738ef9d086261740f6137e3817558c5e8244b6b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
language: ruby
rvm:
  - 2.1.1
  - 2.1.2
services:
  - mysql
before_script:
  - "cp config/settings.yml.example config/settings.yml"
  - "cp config/database.yml.example config/database.yml"
  - "sed -i 's/username: root/username: /g' config/database.yml"
  - "cp config/secrets.yml.example config/secrets.yml"
  - "sed -i s/replace_here/$(rake secret)/g config/secrets.yml"
script:
  - "RAILS_ENV=test bundle exec rake db:create db:migrate"
  - "RAILS_ENV=test bundle exec rake tmp:create"
  - "RAILS_ENV=test bundle exec rails runner bin/start.rb start"
  - "RAILS_ENV=test bundle exec rspec"