-
Notifications
You must be signed in to change notification settings - Fork 96
/
Copy path.travis.yml
31 lines (25 loc) · 909 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# http://about.travis-ci.org/docs/user/build-configuration/
env:
global:
- CC_TEST_REPORTER_ID=787a2f89b15c637323c7340d65ec17e898ac44480706b4b4122ea040c2a88f1d
language: ruby
before_install:
- "cat /etc/timezone"
- "grep -i processor /proc/cpuinfo | wc -l"
- "echo 'gem: --no-ri --no-rdoc' > ~/.gemrc"
- "gem install bundler"
- "bundle -v"
before_script:
- "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"
- "cp -f config/database.yml.example config/database.yml"
- "cp -f config/application.yml.example config/application.yml"
- "bundle exec rake db:drop db:create db:schema:load --trace 2>&1"
script: bundle exec rspec
after_script:
- "./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT"
services:
- postgresql
rvm:
- 2.5.3