Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuy Adorno <ruyadorno@hotmail.com>2021-03-25 07:45:30 +0300
committerRuy Adorno <ruyadorno@hotmail.com>2021-03-26 00:32:24 +0300
commit97b41528739460b2e9e72e09000aded412418cb2 (patch)
tree98236ceca0ff02dc8528f674d09d319a7cc871de /Makefile
parent59cf37962a2286e0f7d3bd37fa9c8bc3bac94218 (diff)
add smoke tests
Lightweight smoke test suite that runs common commands so that we can also have a holistic check during CI. PR-URL: https://github.com/npm/cli/pull/2959 Credit: @ruyadorno Close: #2959 Reviewed-by: @nlf
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 656f64f79..b8add91b6 100644
--- a/Makefile
+++ b/Makefile
@@ -76,6 +76,9 @@ docs/content/using-npm/config.md: scripts/config-doc.js lib/utils/config/*.js
test: dev-deps
node bin/npm-cli.js test
+smoke-tests: dev-deps
+ node bin/npm-cli.js run smoke-tests
+
ls-ok:
node . ls --production >/dev/null
@@ -93,7 +96,7 @@ prune:
@[[ "$(shell git status -s)" != "" ]] && echo "ERR: found unpruned files" && exit 1 || echo "git status is clean"
-publish: gitclean ls-ok link test docs prune
+publish: gitclean ls-ok link test smoke-tests docs prune
@git push origin :v$(shell node bin/npm-cli.js --no-timing -v) 2>&1 || true
git push origin $(BRANCH) &&\
git push origin --tags &&\