Skip to content

Instantly share code, notes, and snippets.

@vinaymavi
Created December 5, 2018 02:50
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vinaymavi/d17f690c90a9434489fd74f40862c1cf to your computer and use it in GitHub Desktop.
Save vinaymavi/d17f690c90a9434489fd74f40862c1cf to your computer and use it in GitHub Desktop.
AWS code build configuration for angular project CI and CD setup.
version: 0.2
phases:
install:
commands:
# Get Chrome Information
- curl -sS -o - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -
- echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list
- apt-get -y update
# Install chrome
- apt-get -y install google-chrome-stable
# Installation of all required packages.
- apt-get install -yq gconf-service xvfb libasound2 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 ca-certificates fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils wget
- npm install
- pip install --upgrade awscli
pre_build:
commands:
- npm run test
- npm run e2e
build:
commands:
- npm run build
post_build:
commands:
- echo Build completed on `date`
artifacts:
type: zip
files:
# - your artifacts list.
@ManuGoel-27
Copy link

Thanks!!
It worked for me, in which I was really stuck from a week ago.
This works with selenium CI/CD pipeline with headless chrome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment