mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2024-12-21 06:33:30 +00:00
Use simpler command for docker compose test volume removal
Signed-off-by: Christina Ying Wang <christina@balena.io>
This commit is contained in:
parent
6a2ccf4007
commit
9431ffc780
@ -17,10 +17,10 @@
|
|||||||
"test:integration:single": "find test/integration -name *.spec.ts | xargs mocha --config test/integration/.mocharc.js",
|
"test:integration:single": "find test/integration -name *.spec.ts | xargs mocha --config test/integration/.mocharc.js",
|
||||||
"test:legacy": "mocha --config test/legacy/.mocharc.js",
|
"test:legacy": "mocha --config test/legacy/.mocharc.js",
|
||||||
"test:node": "npm run test:unit && npm run test:integration && npm run test:legacy",
|
"test:node": "npm run test:unit && npm run test:integration && npm run test:legacy",
|
||||||
"test:env": "ARCH=$(./build-utils/detect-arch.sh) docker-compose -f docker-compose.test.yml -f docker-compose.dev.yml up --build; npm run compose:down",
|
"test:env": "ARCH=$(./build-utils/detect-arch.sh) docker compose -f docker-compose.test.yml -f docker-compose.dev.yml up --build; npm run compose:down",
|
||||||
"test:compose": "ARCH=$(./build-utils/detect-arch.sh) docker-compose -f docker-compose.yml -f docker-compose.test.yml up --build --remove-orphans --exit-code-from=sut ; npm run compose:down",
|
"test:compose": "ARCH=$(./build-utils/detect-arch.sh) docker compose -f docker-compose.yml -f docker-compose.test.yml up --build --remove-orphans --exit-code-from=sut ; npm run compose:down",
|
||||||
"test": "npm run lint && npm run test:build && npm run test:unit",
|
"test": "npm run lint && npm run test:build && npm run test:unit",
|
||||||
"compose:down": "docker-compose -f docker-compose.test.yml down && docker volume rm $(docker volume ls -f name=balena-supervisor -q)",
|
"compose:down": "docker compose -f docker-compose.test.yml down --volumes",
|
||||||
"prettify": "balena-lint -e ts -e js --fix src/ test/ typings/ build-utils/ webpack.config.js",
|
"prettify": "balena-lint -e ts -e js --fix src/ test/ typings/ build-utils/ webpack.config.js",
|
||||||
"release": "tsc --project tsconfig.release.json && mv build/src/* build",
|
"release": "tsc --project tsconfig.release.json && mv build/src/* build",
|
||||||
"sync": "ts-node --files sync/sync.ts",
|
"sync": "ts-node --files sync/sync.ts",
|
||||||
|
Loading…
Reference in New Issue
Block a user