aboutsummaryrefslogtreecommitdiffstats
path: root/.travis.yml
blob: 0d7d5c44497e48f66b51efb77430d97b6c17856c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
language: ruby
rvm:
  - 2.0.0
  - 2.1.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"