Skip to content

Instantly share code, notes, and snippets.

@msfidelis
Created March 12, 2019 18:25
Show Gist options
  • Save msfidelis/b47007f9c81391272930dfedbf8d2f10 to your computer and use it in GitHub Desktop.
Save msfidelis/b47007f9c81391272930dfedbf8d2f10 to your computer and use it in GitHub Desktop.
version: 0.2
phases:
pre_build:
commands:
- echo Installing Node 8
- curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
- apt-get install -y nodejs
- echo Entered the pre_build phase...
- npm install -g serverless
- npm install
build:
commands:
- echo Build started on `date`
- echo Starting Unit Tests
- npm run test # Put your test command code in here
post_build:
commands:
- serverless deploy -v
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment