Last active
July 1, 2019 00:49
-
-
Save EdyVision/1016d47bddad887c3423b2b932e0282a to your computer and use it in GitHub Desktop.
Travis Configuration for Serverless NodeJS Projects
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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