Run the linting automatically as part of the jenkins build.

This commit is contained in:
Pagan Gazzard 2016-07-19 14:37:46 -07:00
parent 965b75816d
commit 8715534d84
3 changed files with 7 additions and 1 deletions

View File

@ -124,6 +124,9 @@ endif
docker build $(DOCKER_HTTP_PROXY) $(DOCKER_HTTPS_PROXY) --no-cache=$(DISABLE_CACHE) -t $(IMAGE) .
-rm Dockerfile
lint: supervisor
docker run --rm --entrypoint='sh' $(IMAGE) -c 'npm install && npm run lint'
deploy: supervisor
docker tag -f $(IMAGE) $(SUPERVISOR_IMAGE)
bash retry_docker_push.sh $(SUPERVISOR_IMAGE)

View File

@ -18,6 +18,9 @@ MAKE_ARGS="ARCH=${ARCH} \
PUBNUB_PUBLISH_KEY=${PUBNUB_PUBLISH_KEY} \
MIXPANEL_TOKEN=${MIXPANEL_TOKEN}"
make ${MAKE_ARGS} \
lint
make ${MAKE_ARGS} \
SUPERVISOR_VERSION=${ESCAPED_BRANCH_NAME} \
DEPLOY_REGISTRY= \

View File

@ -172,7 +172,7 @@ shouldMountKmod = (image) ->
.then (version) ->
return version? and (version.match(/^Debian/i) or version.match(/^Raspbian/i))
.catch (err) ->
console.error("Error getting app OS release: ", err)
console.error('Error getting app OS release: ', err)
return false
application.start = start = (app) ->