-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
46 lines (41 loc) · 923 Bytes
/
.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: python
python:
- "3.7"
stages:
- code_style
- deploy
env:
- DOCKER_COMPOSE_VERSON=1.4.2
jobs:
include:
- stage: code_style
script:
- docker-compose run lint
# Deploy HMG
- stage: deploy
if: (branch = devel) AND (type != pull_request)
install: skip
script: skip
deploy:
provider: heroku
skip_cleanup: true
api_key:
secure: ${HEROKU_KEY}
app: alohomora-bot-hmg
on:
repo: Alohomora-team/2019.2-AlohomoraBot
branch: devel
#Deploy PROD
- stage: deploy
if: (branch = master) AND (type != pull_request)
install: skip
script: skip
deploy:
provider: heroku
skip_cleanup: true
api_key:
secure: ${HEROKU_KEY}
app: alohomora-bot
on:
repo: Alohomora-team/2019.2-AlohomoraBot
branch: master