Last active
September 25, 2020 14:17
-
-
Save lekansogunle/738220eb6ffa8d8ad5b01a1cce9ecf0f to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
- ${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