mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-01-30 08:03:59 +00:00
Run the linting automatically as part of the jenkins build.
This commit is contained in:
parent
965b75816d
commit
8715534d84
3
Makefile
3
Makefile
@ -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)
|
||||
|
@ -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= \
|
||||
|
@ -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) ->
|
||||
|
Loading…
x
Reference in New Issue
Block a user