Merge pull request #1038 from k88hudson/gh1028
chore(build): #1028 Use nightly for test/run
This commit is contained in:
Коммит
8f3c6f3390
|
@ -167,12 +167,12 @@
|
|||
"start:css": "npm run bundle:css && npm run bundle:css -- -w",
|
||||
"start:html": "npm run bundle:html -- --baseUrl http://localhost:1963/ --csp off",
|
||||
"start:server": "live-server data/content --port=1963 --no-browser",
|
||||
"firefox": "npm run bundle:webpackAddon && jpm run --prefs ./dev-prefs.json",
|
||||
"firefox": "npm run bundle:webpackAddon && jpm run -b nightly --prefs ./dev-prefs.json",
|
||||
"test": "npm-run-all test:*",
|
||||
"pretest": "npm run bundle && npm run copyTestImages && npm run copyTopSitesJson",
|
||||
"test:lint": "eslint --ext=.js,.jsx,.json . && sass-lint -v -q",
|
||||
"test:checkbinary": "echo \"JPM_FIREFOX_BINARY: ${JPM_FIREFOX_BINARY}\"",
|
||||
"test:jpm": "jpm test -b ${JPM_FIREFOX_BINARY:-\"firefox\"} --prefs ./test-prefs.json -v",
|
||||
"test:jpm": "jpm test -b ${JPM_FIREFOX_BINARY:-\"nightly\"} --prefs ./test-prefs.json -v",
|
||||
"test:karma": "NODE_ENV=test karma start",
|
||||
"posttest": "cat logs/reports/coverage/text-summary.txt",
|
||||
"tdd": "npm run test:karma -- --no-single-run --browsers Chrome",
|
||||
|
|
|
@ -38,7 +38,7 @@ scripts:
|
|||
server: live-server data/content --port=1963 --no-browser
|
||||
|
||||
# firefox: Launch addon with jpm run
|
||||
firefox: =>bundle:webpackAddon && jpm run --prefs ./dev-prefs.json
|
||||
firefox: =>bundle:webpackAddon && jpm run -b nightly --prefs ./dev-prefs.json
|
||||
|
||||
# test: Run all tests once
|
||||
test:
|
||||
|
@ -47,7 +47,7 @@ scripts:
|
|||
lint: eslint --ext=.js,.jsx,.json . && sass-lint -v -q
|
||||
checkbinary: echo "JPM_FIREFOX_BINARY: ${JPM_FIREFOX_BINARY}"
|
||||
# test:jpm: Run jpm tests
|
||||
jpm: jpm test -b ${JPM_FIREFOX_BINARY:-"firefox"} --prefs ./test-prefs.json -v
|
||||
jpm: jpm test -b ${JPM_FIREFOX_BINARY:-"nightly"} --prefs ./test-prefs.json -v
|
||||
# test:karma: Run content tests only
|
||||
karma: NODE_ENV=test karma start
|
||||
post: cat logs/reports/coverage/text-summary.txt
|
||||
|
|
Загрузка…
Ссылка в новой задаче