mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-13 20:11:19 -04:00
Enforce cake linting in CI
This commit is contained in:
parent
335925dcc8
commit
cb505b6202
2 changed files with 6 additions and 3 deletions
|
@ -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
|
||||||
|
|
|
@ -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.'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue