Skip to content

Instantly share code, notes, and snippets.

@arterberry
Created June 2, 2019 01:26
Show Gist options
  • Save arterberry/11494c7fa9919fb4492ba5c4c2394b4b to your computer and use it in GitHub Desktop.
Save arterberry/11494c7fa9919fb4492ba5c4c2394b4b to your computer and use it in GitHub Desktop.
A simple CodeBuild buildspec for a JS test automation repo on CodeCommit
version: 0.2
phases:
install:
runtime-versions:
nodejs: 10
pre_build:
commands:
- echo Installing npm and dependencies...
- npm install
- npm update
build:
commands:
- echo run automated tests ...
- ./node_modules/.bin/testcafe "chrome:headless" ./tests/authenticationTests.js
post_build:
commands:
- echo automated tests completed.
artifacts:
files:
- '**/*'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment