forked from Opentrons/Protocols
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
49 lines (44 loc) · 1.17 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
47
48
49
language: python
python:
- "3.8.4"
install:
- export OT_UPLOAD_BRANCH=$(python scripts/getBranch.py)
- echo $OT_UPLOAD_BRANCH
- echo $PATH
- pip install -e otcustomizers
- pip install -r protolib/requirements.txt
- pip install flake8==3.8.4 pytest
- make setup
addons:
apt:
packages:
- libsystemd-dev
script:
- python --version
- python3 --version
# lint all code
- flake8 protocols/ protolib/
# fail the build if protoBuilds is not up-to-date
- bash ./checkChanges.sh
- python ./scripts/bad-README-subcategory.py # make sure subcategories don't have 2 spaces
# combine all parsed files to final zipped JSON in releases/deploy
# (NOTE: developers should have run `make all` beforehand and commited the results)
- make build
# Deploy the build version in an S3 bucket
deploy:
provider: s3
region: us-west-2
access_key_id: $AWS_ACCESS_KEY
secret_access_key: $AWS_SECRET_KEY
bucket: protocol-library-builds
skip_cleanup: true
local-dir: releases/deploy
upload-dir: $OT_UPLOAD_BRANCH
acl: private
on:
repo: Opentrons/Protocols
all_branches: true
notifications:
email:
on_success: change
on_failure: change