mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-01-30 16:14:11 +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) .
|
docker build $(DOCKER_HTTP_PROXY) $(DOCKER_HTTPS_PROXY) --no-cache=$(DISABLE_CACHE) -t $(IMAGE) .
|
||||||
-rm Dockerfile
|
-rm Dockerfile
|
||||||
|
|
||||||
|
lint: supervisor
|
||||||
|
docker run --rm --entrypoint='sh' $(IMAGE) -c 'npm install && npm run lint'
|
||||||
|
|
||||||
deploy: supervisor
|
deploy: supervisor
|
||||||
docker tag -f $(IMAGE) $(SUPERVISOR_IMAGE)
|
docker tag -f $(IMAGE) $(SUPERVISOR_IMAGE)
|
||||||
bash retry_docker_push.sh $(SUPERVISOR_IMAGE)
|
bash retry_docker_push.sh $(SUPERVISOR_IMAGE)
|
||||||
|
@ -18,6 +18,9 @@ MAKE_ARGS="ARCH=${ARCH} \
|
|||||||
PUBNUB_PUBLISH_KEY=${PUBNUB_PUBLISH_KEY} \
|
PUBNUB_PUBLISH_KEY=${PUBNUB_PUBLISH_KEY} \
|
||||||
MIXPANEL_TOKEN=${MIXPANEL_TOKEN}"
|
MIXPANEL_TOKEN=${MIXPANEL_TOKEN}"
|
||||||
|
|
||||||
|
make ${MAKE_ARGS} \
|
||||||
|
lint
|
||||||
|
|
||||||
make ${MAKE_ARGS} \
|
make ${MAKE_ARGS} \
|
||||||
SUPERVISOR_VERSION=${ESCAPED_BRANCH_NAME} \
|
SUPERVISOR_VERSION=${ESCAPED_BRANCH_NAME} \
|
||||||
DEPLOY_REGISTRY= \
|
DEPLOY_REGISTRY= \
|
||||||
|
@ -172,7 +172,7 @@ shouldMountKmod = (image) ->
|
|||||||
.then (version) ->
|
.then (version) ->
|
||||||
return version? and (version.match(/^Debian/i) or version.match(/^Raspbian/i))
|
return version? and (version.match(/^Debian/i) or version.match(/^Raspbian/i))
|
||||||
.catch (err) ->
|
.catch (err) ->
|
||||||
console.error("Error getting app OS release: ", err)
|
console.error('Error getting app OS release: ', err)
|
||||||
return false
|
return false
|
||||||
|
|
||||||
application.start = start = (app) ->
|
application.start = start = (app) ->
|
||||||
|
Loading…
x
Reference in New Issue
Block a user