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