Jenkins: add storagenode npm checks

Change-Id: I93e3cc009c628e3c97a24541e7b01c75a342bda6
This commit is contained in:
Egon Elbre 2020-02-03 16:40:07 +02:00
parent 109d733dde
commit 91a480f5a0
4 changed files with 23 additions and 11 deletions

View File

@ -27,7 +27,7 @@ pipeline {
sh 'service postgresql start'
sh 'make -j3 build-packages'
sh 'make -j4 build-packages'
sh 'make install-sim'
sh 'cockroach start-single-node --insecure --store=type=mem,size=2GiB --listen-addr=localhost:26257 --http-addr=localhost:8080 --cache 512MiB --max-sql-memory 512MiB --background'
@ -151,13 +151,23 @@ pipeline {
}
}
stage('npm') {
stage('satellite npm') {
steps {
dir("web/satellite") {
sh 'npm run build'
sh 'npm run lint'
// TODO: reenable with vue4
sh script: 'npm audit', returnStatus: true
sh 'npm audit'
sh 'npm run test'
}
}
}
stage('storagenode npm') {
steps {
dir("web/storagenode") {
sh 'npm run build'
sh 'npm run lint'
sh 'npm audit'
sh 'npm run test'
}
}

View File

@ -61,13 +61,15 @@ goimports-st: ## Applies goimports to every go file in `git status` (ignores unt
@git status --porcelain -uno|grep .go|grep -v "^D"|sed -E 's,\w+\s+(.+->\s+)?,,g'|xargs -I {} goimports -w -local storj.io {}
.PHONY: build-packages
build-packages: build-packages-race build-packages-normal build-npm ## Test docker images locally
build-packages: build-packages-race build-packages-normal build-satellite-npm build-storagenode-npm ## Test docker images locally
build-packages-race:
go build -v ./...
build-packages-normal:
go build -v -race ./...
build-npm:
build-satellite-npm:
cd web/satellite && npm ci
build-storagenode-npm:
cd web/storagenode && npm ci
##@ Simulator

View File

@ -10474,9 +10474,9 @@
}
},
"node-sass": {
"version": "4.13.0",
"resolved": "https://registry.npmjs.org/node-sass/-/node-sass-4.13.0.tgz",
"integrity": "sha512-W1XBrvoJ1dy7VsvTAS5q1V45lREbTlZQqFbiHb3R3OTTCma0XBtuG6xZ6Z4506nR4lmHPTqVRwxT6KgtWC97CA==",
"version": "4.13.1",
"resolved": "https://registry.npmjs.org/node-sass/-/node-sass-4.13.1.tgz",
"integrity": "sha512-TTWFx+ZhyDx1Biiez2nB0L3YrCZ/8oHagaDalbuBSlqXgUPsdkUSzJsVxeDO9LtPB49+Fh3WQl3slABo6AotNw==",
"dev": true,
"requires": {
"async-foreach": "^0.1.3",

View File

@ -28,16 +28,16 @@
"devDependencies": {
"@babel/core": "7.7.7",
"@babel/plugin-proposal-object-rest-spread": "7.7.7",
"@types/segment-analytics": "0.0.32",
"@vue/cli-plugin-babel": "4.1.1",
"@vue/cli-plugin-typescript": "4.1.1",
"@vue/cli-plugin-unit-jest": "4.1.1",
"@vue/cli-service": "4.1.1",
"@types/segment-analytics": "0.0.32",
"@vue/test-utils": "1.0.0-beta.30",
"babel-core": "7.0.0-bridge.0",
"compression-webpack-plugin": "3.0.1",
"jest-fetch-mock": "3.0.0",
"node-sass": "4.13.0",
"node-sass": "^4.13.1",
"sass-loader": "8.0.0",
"sinon": "7.5.0",
"stylelint": "12.0.1",