chore(tools): control Cypress installation (#38660)

This commit is contained in:
Oliver Eyton-Williams
2020-04-28 13:20:02 +02:00
committed by GitHub
parent f5eeda68d1
commit 33963cc854
4 changed files with 291 additions and 19 deletions

12
cypress-install.js Normal file
View File

@ -0,0 +1,12 @@
const util = require('cypress/lib/util');
const execa = require('execa');
const pkg = util.pkgVersion();
(async () => {
console.log('Installing Cypress ' + pkg);
await execa('npm', ['run', 'cypress:install'], {
env: { CYPRESS_INSTALL_BINARY: pkg }
});
console.log('Cypress installed');
})();