2014-07-17 20:02:36 +08:00
|
|
|
# http://about.travis-ci.org/docs/user/build-configuration/
|
|
|
|
language: ruby
|
|
|
|
|
2016-03-17 13:50:39 +08:00
|
|
|
#bundler_args: '--without production'
|
2014-07-17 20:02:36 +08:00
|
|
|
|
2014-07-17 21:04:53 +08:00
|
|
|
script: CODECLIMATE_REPO_TOKEN=7d6b988f58234bf1560305412d10d9530902beebdbe2fb938b6a934f1d352578 bundle exec rake
|
|
|
|
|
2014-07-17 20:02:36 +08:00
|
|
|
before_install:
|
|
|
|
- "cat /etc/timezone"
|
|
|
|
- "grep -i processor /proc/cpuinfo | wc -l"
|
|
|
|
- "echo 'gem: --no-ri --no-rdoc' > ~/.gemrc"
|
2016-03-17 13:50:39 +08:00
|
|
|
- "gem install bundler"
|
2014-07-17 20:02:36 +08:00
|
|
|
- "bundle -v"
|
2016-04-25 14:46:33 +08:00
|
|
|
|
|
|
|
before_script:
|
2016-04-25 14:36:42 +08:00
|
|
|
- "cp -f config/database.yml.example config/database.yml"
|
2016-04-25 14:37:17 +08:00
|
|
|
- "cp -f config/application.yml.example config/application.yml"
|
2016-04-25 14:36:42 +08:00
|
|
|
- "bundle exec rake db:drop db:create db:schema:load --trace 2>&1"
|
2014-07-17 20:02:36 +08:00
|
|
|
|
2014-07-17 20:51:45 +08:00
|
|
|
services:
|
2016-04-25 13:03:41 +08:00
|
|
|
- postgresql
|
2014-07-17 20:42:36 +08:00
|
|
|
|
2014-07-17 20:02:36 +08:00
|
|
|
rvm:
|
2016-07-28 20:26:13 +08:00
|
|
|
- 2.3.1
|