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:
gbrodman 2019-06-20 18:19:23 -04:00 committed by GitHub
parent 520145f641
commit 00147c1bc4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 609 additions and 450 deletions

View file

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

File diff suppressed because it is too large Load diff

View file

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

View file

@ -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/*