wblog/.travis.yml

32 lines
909 B
YAML
Raw Normal View History

2014-07-17 20:02:36 +08:00
# http://about.travis-ci.org/docs/user/build-configuration/
2018-05-19 17:30:25 +08:00
env:
global:
- CC_TEST_REPORTER_ID=787a2f89b15c637323c7340d65ec17e898ac44480706b4b4122ea040c2a88f1d
2014-07-17 20:02:36 +08:00
language: ruby
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:
2018-05-19 17:30:25 +08:00
- "curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter"
- "chmod +x ./cc-test-reporter"
- "./cc-test-reporter before-build"
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
2018-05-19 17:30:25 +08:00
script: bundle exec rspec
after_script:
- "./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT"
2014-07-17 20:51:45 +08:00
services:
2018-05-19 17:30:25 +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