forked from zerofox-oss/yelp-avro
-
Notifications
You must be signed in to change notification settings - Fork 1
/
scarab.yaml
60 lines (57 loc) · 1.58 KB
/
scarab.yaml
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
50
51
52
53
54
55
56
57
58
59
60
name: avro
plugins:
# Utility plugins
DynamoDB:
dynamo_region: us-west-2
boto_auth_file: /etc/boto_cfg/scarab.cfg
YelpTransport: {}
# Event plugins
GitPush:
remote_target: trunk
CleanDist: {}
RecordPypiUpload: {}
CleanupVenv: {}
IncrementLocalVersion:
version_file: share/VERSION.txt
version_cmd: 'cat share/VERSION.txt'
ReleaseCommit:
setup_dir: lang/py/build
add_files:
- share/VERSION.txt
SetupBuild:
plugin_class: RunCommand
command: 'ant -f lang/py/build.xml build'
VerifyVersion:
setup_dir: lang/py/build
BuildDist:
setup_dir: lang/py/build
UploadBuild:
plugin_class: UploadToS3
bucket_name: yelp-pypi-dev
bucket_region: us-west-2
key_prefix: ''
boto_auth_file: /etc/boto_cfg/pypi.cfg
files:
- 'dist/{name}-*.tar.gz'
- 'dist/{name}-*.whl'
events:
release:
help: 'Updates necessary files for a new version release, commits, and pushes it to origin'
local:
- IncrementLocalVersion
- SetupBuild
- ReleaseCommit
- GitPush
publish:
help: 'Verifies version, builds whl and tar.gz of release, and uploads to pypi'
local:
- SetupBuild
- VerifyVersion
- CleanDist
- BuildDist
- UploadBuild
- RecordPypiUpload
- CleanupVenv
workflows:
- Start -> release -> VersionCreated
- VersionCreated -> publish -> End