misc: do not publish lighthouse-cli/test except smokehouse (#12415)
This commit is contained in:
Родитель
c333322264
Коммит
dee182a1f7
|
@ -22,8 +22,11 @@ lighthouse-logger/
|
|||
!lighthouse-core/scripts/manual-chrome-launcher.js
|
||||
!lighthouse-core/scripts/download-chrome.sh
|
||||
|
||||
# keep smokehouse tests, etc
|
||||
!lighthouse-cli/test
|
||||
# Exclude the CLI smoketests but keep the smoketest runner that is used
|
||||
# by downstream projects (e.g. publisher ads).
|
||||
lighthouse-cli/test/cli
|
||||
lighthouse-cli/test/fixtures
|
||||
lighthouse-cli/test/smokehouse/test-definitions
|
||||
|
||||
results/
|
||||
lantern-data/
|
||||
|
|
|
@ -19,7 +19,7 @@ const log = require('lighthouse-logger');
|
|||
const {runSmokehouse} = require('../smokehouse.js');
|
||||
const {server, serverForOffline} = require('../../fixtures/static-server.js');
|
||||
|
||||
const coreTestDefnsPath = require.resolve('../test-definitions/core-tests.js');
|
||||
const coreTestDefnsPath = `${__dirname}/../test-definitions/core-tests.js`;
|
||||
|
||||
/**
|
||||
* Possible Lighthouse runners. Loaded dynamically so e.g. a CLI run isn't
|
||||
|
|
|
@ -36,8 +36,10 @@ cd /tmp/lighthouse-local-test
|
|||
|
||||
npm init -y
|
||||
npm install "$LH_PRISTINE_ROOT/lighthouse-$VERSION.tgz"
|
||||
cd node_modules/lighthouse/lighthouse-cli/test/ && npm install lodash.clonedeep && cd ../../../../
|
||||
npm explore lighthouse -- npm run smoke -- --retries=3
|
||||
npx add-dependencies package.json mime-types lodash.clonedeep
|
||||
npm install --only=prod
|
||||
cp -r "$LH_PRISTINE_ROOT/lighthouse-cli/test/fixtures" node_modules/lighthouse/lighthouse-cli/test
|
||||
npm explore lighthouse -- npm run smoke -- --tests-path "$LH_PRISTINE_ROOT/lighthouse-cli/test/smokehouse/test-definitions/core-tests.js" --retries=3
|
||||
npm explore lighthouse -- npm run fast -- http://example.com
|
||||
|
||||
cd "$LH_PRISTINE_ROOT"
|
||||
|
|
Загрузка…
Ссылка в новой задаче