Skip to content

Instantly share code, notes, and snippets.

@EdyVision
Last active July 1, 2019 00:49
Embed
What would you like to do?
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