-
Notifications
You must be signed in to change notification settings - Fork 8
/
.travis.yml
46 lines (46 loc) · 1.07 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
34
35
36
37
38
39
40
41
42
43
44
45
46
language: go
go:
- 1.11.x
jobs:
include:
- stage: Tests
script:
- make test
- make build
- stage: Deploy Staging
if: branch = master
before_deploy:
- npm install -g serverless
- npm install --save-dev serverless-domain-manager
- npm install --save-dev serverless-plugin-tracing
deploy:
skip_cleanup: true
provider: script
script: make stage
on:
branch: master
- stage: Deploy Release
if: tag IS present
before_deploy:
- npm install -g serverless
- npm install --save-dev serverless-domain-manager
- npm install --save-dev serverless-plugin-tracing
deploy:
- provider: releases
skip_cleanup: true
api_key: ${GITHUB_TOKEN}
file:
- "bin/*"
- "templates/*"
- "img/*"
- "serverless_stages.yml"
- "serverless.yml"
on:
tags: true
repo: billglover/bbot
- provider: script
skip_cleanup: true
script: make release
on:
tags: true
repo: billglover/bbot