Enforce cake linting in CI

This commit is contained in:
Arlo Breault 2016-01-27 22:09:43 -08:00
parent 335925dcc8
commit cb505b6202
2 changed files with 6 additions and 3 deletions

View file

@ -4,9 +4,11 @@ go:
- 1.5 - 1.5
before_script: before_script:
npm install -g coffee-script npm install -g coffee-script coffeelint
script: script:
- make check - make check
- go test -v -race ./broker - go test -v -race ./broker
- cd proxy && cake test - cd proxy
- cake lint
- cake test

View file

@ -82,7 +82,8 @@ class Snowflake
RATE_LIMIT_HISTORY) RATE_LIMIT_HISTORY)
# TODO: Should potentially fetch from broker later. # TODO: Should potentially fetch from broker later.
# Set the target relay address spec, which is expected to be a websocket relay. # Set the target relay address spec, which is expected to be a websocket
# relay.
setRelayAddr: (relayAddr) -> setRelayAddr: (relayAddr) ->
@relayAddr = relayAddr @relayAddr = relayAddr
log 'Using ' + relayAddr.host + ':' + relayAddr.port + ' as Relay.' log 'Using ' + relayAddr.host + ':' + relayAddr.port + ' as Relay.'