Skip to content

Instantly share code, notes, and snippets.

@lekansogunle
Last active September 25, 2020 14:17
Show Gist options
  • Save lekansogunle/738220eb6ffa8d8ad5b01a1cce9ecf0f to your computer and use it in GitHub Desktop.
Save lekansogunle/738220eb6ffa8d8ad5b01a1cce9ecf0f to your computer and use it in GitHub Desktop.
language: node_js
node_js:
- "10"
cache:
directories:
- node_modules
- ${SERVICE_PATH}/node_modules
install:
- yarn global add serverless
- travis_retry yarn install
- cd ${SERVICE_PATH}
- travis_retry yarn install
- cd -
script:
- yarn run jest
jobs:
include:
-
name: "Deploy User Init API"
env:
- SERVICE_PATH="init-user"
-
name: "Deploy Create Post API"
env:
- SERVICE_PATH="create-post"
deploy:
provider: script
script: bash bin/deploy
on:
all_branches: true
condition: $TRAVIS_BRANCH =~ ^(master|staging)$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment