Skip to content

Instantly share code, notes, and snippets.

@vinitshahdeo
Forked from nicobytes/pipelines.yml
Created August 7, 2019 10:14
Show Gist options
  • Save vinitshahdeo/1106783a4a57166a1136bd64d910168e to your computer and use it in GitHub Desktop.
Save vinitshahdeo/1106783a4a57166a1136bd64d910168e to your computer and use it in GitHub Desktop.
Install chrome for CI
image: node:6.9.4
pipelines:
branches:
master:
- step:
script:
- apt-get update; apt-get install -y gettext-base;
- echo 'deb http://dl.google.com/linux/chrome/deb/ stable main' > /etc/apt/sources.list.d/chrome.list
- wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -
- set -x && apt-get update && apt-get install -y xvfb google-chrome-stable
- wget -q -O /usr/bin/xvfb-chrome https://bitbucket.org/atlassian/docker-node-chrome-firefox/raw/ff180e2f16ea8639d4ca4a3abb0017ee23c2836c/scripts/xvfb-chrome
- ln -sf /usr/bin/xvfb-chrome /usr/bin/google-chrome
- chmod 755 /usr/bin/google-chrome
- npm install -g @angular/cli
- npm install -g now
- npm install
- ng test --single-run
- ng build --target=production --base-href /
- now dist --public -t=$NOW_TOKEN
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment