Skip to content

Commit

Permalink
fix(travis): get code climate working again
Browse files Browse the repository at this point in the history
  • Loading branch information
mbroadst committed Nov 10, 2015
1 parent 74118a9 commit 976cb25
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
11 changes: 5 additions & 6 deletions .travis.yml
Expand Up @@ -4,10 +4,6 @@ node_js:
- '0.12'
- '4'

cache:
directories:
- node_modules

branches:
except:
- gh-pages
Expand All @@ -21,18 +17,21 @@ branches:
# - rabbitmq-server
# - qpidd

before_script:
before_install:
- npm install -g codeclimate-test-reporter
- sudo add-apt-repository ppa:qpid/testing -y
- sudo apt-get update -q
- sudo apt-get install qpidd qpid-tools
- sudo sh -c 'echo "auth=no" >> /etc/qpid/qpidd.conf'

before_script:
- sudo /etc/init.d/qpidd restart

# remove these when we can specify link properties
- sudo qpid-config add queue test.disposition.queue

script:
- make coverage

after_script:
- make codeclimate-send
- codeclimate-test-reporter < coverage/lcov.info
5 changes: 1 addition & 4 deletions Makefile
Expand Up @@ -17,9 +17,6 @@ fixjsstyle:
coverage: jshint
$(NPM_BIN)/istanbul cover $(NPM_BIN)/_mocha --report lcovonly -- --recursive -t 10000 --ui tdd $(UNIT_TESTS) $(QPID_INTEGRATION_TESTS) $(SERVICEBUS_INTEGRATION_TESTS)

codeclimate-send:
CODECLIMATE_REPO_TOKEN=2612b6d4b7bed06760320154f22eba4e348e53055c0eaf9a9a00e3b05ef3b37d codeclimate < coverage/lcov.info

test-unit: jshint
$(NPM_BIN)/mocha --globals setImmediate,clearImmediate --recursive --check-leaks --colors -t 10000 --reporter $(REPORTER) $(UNIT_TESTS) $(GREPARG)

Expand All @@ -34,4 +31,4 @@ test: test-unit test-qpid test-servicebus
apidoc: jshint
$(NPM_BIN)/jsdoc2md --src lib/**/*.js > api/README.md

.PHONY: jshint fixjsstyle coverage codeclimate-send test
.PHONY: jshint fixjsstyle coverage test

0 comments on commit 976cb25

Please sign in to comment.