-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Dave Henton
authored and
Dave Henton
committed
Jul 27, 2017
1 parent
c756a23
commit 5978e4a
Showing
3 changed files
with
6 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,4 @@ | ||
env: | ||
global: | ||
- CC_TEST_REPORTER_ID=79fc565618e184940308cf086214ba65bd801e62866eb9d30cabee6a41e6a71a | ||
- GIT_COMMITTED_AT=$(if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then git log -1 --pretty=format:%ct; else git log -1 --skip 1 --pretty=format:%ct; fi) | ||
language: ruby | ||
rvm: | ||
- 2.2.0 | ||
before_script: | ||
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter | ||
- chmod +x ./cc-test-reporter | ||
script: | ||
- bundle exec rspec | ||
# Preferably you will run test-reporter on branch update events. But | ||
# if you setup travis to build PR updates only, you don't need to run | ||
# the line below | ||
- if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT; fi | ||
# In the case where travis is setup to build PR updates only, | ||
# uncomment the line below | ||
# - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT | ||
# uncomment and edit the following line if your project needs to run something other than `rake`: | ||
script: bundle exec rspec spec | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,5 +3,6 @@ gem "rspec", "~> 3.2" | |
|
||
group :test do | ||
gem "simplecov" | ||
gem "codeclimate-test-reporter", "~> 1.0.0" | ||
gem "rake" | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters