mirror of
https://github.com/google/nomulus.git
synced 2025-07-25 03:58:34 +02:00
Install Chrome in the Cloud Build process (#124)
* Install Chrome in the Cloud Build process It's not in the built-in Linux apt repos so we need to manually wget it * Update package lock file
This commit is contained in:
parent
520145f641
commit
00147c1bc4
4 changed files with 609 additions and 450 deletions
|
@ -1,6 +1,14 @@
|
|||
process.env.CHROME_BIN = require('puppeteer').executablePath()
|
||||
|
||||
module.exports = function(config) {
|
||||
config.set({
|
||||
browsers: ['ChromeHeadless'],
|
||||
browsers: ['ChromeHeadlessNoSandbox'],
|
||||
customLaunchers: {
|
||||
ChromeHeadlessNoSandbox: {
|
||||
base: 'ChromeHeadless',
|
||||
flags: ['--no-sandbox']
|
||||
}
|
||||
},
|
||||
frameworks: ['jasmine', 'closure'],
|
||||
singleRun: true,
|
||||
autoWatch: false,
|
||||
|
|
1040
package-lock.json
generated
1040
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -24,6 +24,7 @@
|
|||
"karma": "3.0.0",
|
||||
"karma-chrome-launcher": "^2.2.0",
|
||||
"karma-closure": "^0.1.3",
|
||||
"karma-jasmine": "^2.0.1"
|
||||
"karma-jasmine": "^2.0.1",
|
||||
"puppeteer": "1.17.0"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -37,7 +37,11 @@ apt-get install google-cloud-sdk-app-engine-java -y
|
|||
apt-get install git -y
|
||||
# Install docker
|
||||
apt-get install docker.io -y
|
||||
apt-get remove apt-utils locales lsb-release -y
|
||||
# Install Chrome
|
||||
apt-get install wget -y
|
||||
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
|
||||
apt install ./google-chrome-stable_current_amd64.deb -y
|
||||
apt-get remove apt-utils locales -y
|
||||
apt-get autoclean -y
|
||||
apt-get autoremove -y
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue