Skip to content

Instantly share code, notes, and snippets.

@EdyVision
Last active July 1, 2019 00:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save EdyVision/1016d47bddad887c3423b2b932e0282a to your computer and use it in GitHub Desktop.
Save EdyVision/1016d47bddad887c3423b2b932e0282a to your computer and use it in GitHub Desktop.
Travis Configuration for Serverless NodeJS Projects
language: node_js
node_js:
- "10"
cache:
directories:
- node_modules
install:
- npm install -g serverless
jobs:
include:
- stage: "Tests"
name: "Unit Tests"
script:
- npm install
- npm test
- stage: deploy
name: "Deploy to AWS"
script: sls deploy -v
if: NOT type = pull_request
on:
branch: master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment