forked from Opentrons/Protocols
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
44 lines (40 loc) · 1015 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
sudo: false
language: python
python:
- '3.5'
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 pytest
script:
- python --version
- python3 --version
- python -c 'import opentrons; print(opentrons.__version__)'
# lint all code
- flake8 .
- pytest protolib/
# - ./scripts/smoke-test.sh # skip smoke testing, hope protolib catches it
#
# use protolib to build zipped .json for S3
- python -m protolib protocols/ releases/
- ls -la releases/
# Deploy the build version in an S3 bucket
deploy:
provider: s3
access_key_id: $AWS_ACCESS_KEY
secret_access_key: $AWS_SECRET_KEY
bucket: protocol-library-builds
skip_cleanup: true
local-dir: releases
upload-dir: $OT_UPLOAD_BRANCH
acl: private
on:
repo: Opentrons/Protocols
all_branches: true
notifications:
email:
on_success: change
on_failure: change