-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
33 lines (33 loc) · 1.62 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
dist: xenial
language: node_js
node_js:
- '11'
services: docker
env:
global:
SLS_DEBUG: 'true'
cache:
directories:
- node_modules
before_install:
- sudo apt-get -qy update && sudo apt-get -qy -o Dpkg::Options::="--force-confdef"
-o Dpkg::Options::="--force-confold" install docker-ce && docker --version
install:
- npm install serverless -g
- npm install serverless-python-requirements serverless-prune-plugin
before_script: |
if [[ "$TRAVIS_BRANCH" == master && "$TRAVIS_PULL_REQUEST" == false ]]; then
mkdir ~/.aws
gpg --decrypt --passphrase "$(echo "$ENCRYPT_KEY" | base64 --decode)" --batch --yes --output ~/.aws/credentials .aws.gpg
chmod 400 ~/.aws/credentials
fi
script: |
if [[ "$TRAVIS_BRANCH" == master && "$TRAVIS_PULL_REQUEST" == false ]]; then
npm install
serverless deploy --stage prod
fi
notifications:
webhooks:
urls: https://qf0d5qh12f.execute-api.us-east-1.amazonaws.com/prod/travis
slack:
secure: TmrB8nVGagUOkHIpHlX0u4AiM1lfvvDBeB9mX//jVvoW+ex42UPeaeiqzLbMlbNzeK+iH/LB+9hMucKeF0MHCjx4FGqxw7rWtOHR/vKJsKX6DnIRHoI/hyNcsmAE4jMEtNBcYXEWrKS1hNx40uDhSGCXWvv7DYriIHt9jzgskEagGoUKRNH/hohQ0X3fbhgOIr6IACJgRHZ5ZiByBQH8+zAY+lLj/mahrMhHP4ZvLTMxtpv9SUYfErkSIu6jwLuCNxv5ynxEWkpu0vpds87f2h8NfFdLMdlO4CJmEGLyrkEhNRjg8dYQYVbbd1Ib0K8CwJN1TZhvXsh6H6geyk7DJttAnUoFQTCofJ8wrRThxmEJrJcYbaQ/9owakxsPcWlFK/6CO77yFLq5KCSeFz74DFvUXTNSl3LrTGTLQeXvC7iVVgjHWwUFWBk2E0nXYkSjPb+83fLCYX+HglcZhY2WZrnBZvxOlkFlYL4fmJ6NTpzTmmvPNlQAGniRAtP4apUg/PjcTOFhaAlfGXDJlhsxFdV8UnedFtNXRK6OKALPh0ys+MYa3pf/0gIXJ5m2A0xhWnKZFdLgrYL3OP3Isy42vjCnzeJWi/O7LPRDG4vt48q73fnJriYplL5+uV9CsxACgN3kkkapgvEw0gb+Dlb2Rjbgkaj2uYkKRRvGliINCzI=