-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
33 lines (30 loc) · 824 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
language: python
python:
- "3.8"
# Command to install dependencies
install:
- pip3 install -r requirements.txt
# Runs before merging
script:
- python3 -m unittest tests/heart_test.py
- zip -r latest *
- mkdir -p dpl_cd_upload
- mv latest.zip dpl_cd_upload/latest.zip
# Run when is merged with master
deploy:
- provider: s3
access_key_id: $AccessKeyId #RENAME THIS
secret_access_key: $AccessKeySecret #RENAME THIS
local_dir: dpl_cd_upload
skip_cleanup: true
bucket: heartdiseasepredictor
region: us-east-1
- provider: codedeploy
access_key_id: $AccessKeyId
secret_access_key: $AccessKeySecret
bucket: heartdiseasepredictor
key: latest.zip
bundle_type: zip
application: heartdiseasepredictor
deployment_group: travisheartdiseasegroup
region: us-east-1