misc: do not publish lighthouse-cli/test except smokehouse (#12415)

This commit is contained in:
Connor Clark 2021-04-30 18:17:59 -06:00 коммит произвёл GitHub
Родитель c333322264
Коммит dee182a1f7
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
3 изменённых файлов: 10 добавлений и 5 удалений

Просмотреть файл

@ -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"