-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuildkite.yml
69 lines (64 loc) · 2.12 KB
/
buildkite.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
steps:
- label: ":copyright: Typechecking Module"
commands:
- "echo '--- Setting Up'"
- "mkdir -p /build"
- "cp -R . /build"
- "cd /build"
- "echo '--- Installing Packages'"
- "pip install -r dev_requirements.txt"
- "pip install -r requirements_torch.txt"
- "pip install -e '.[metrics,torch]'"
- "yarn global add '[email protected]'"
- "echo '+++ Running Pyright'"
- "pyright"
if: build.message !~ /skip tests/
plugins:
- docker#v3.7.0:
image: "nikolaik/python-nodejs:python3.8-nodejs12"
- label: ":python: Testing Module"
commands:
- "echo '--- Setting Up'"
- "mkdir -p /test"
- "cp -R . /test"
- "cd /test"
- "echo '--- Installing Packages'"
- "pip install -e '.[metrics]'"
- "echo '+++ Running Tests'"
- "python -m unittest discover tests"
if: build.message !~ /skip tests/
plugins:
- docker#v3.7.0:
image: "python:3.8"
- wait
- label: ":package: Building and Pushing Wheel"
commands:
- "python3.7 setup.py bdist_wheel"
- "twine upload -r datatap dist/*"
- "twine upload -r zensors dist/*"
if: build.branch == "master"
- label: ":package: Building and Pushing Documentation"
commands:
- "echo '--- Setting Up'"
- "mkdir -p /build"
- "cp -R . /build"
- "cd /build"
- "echo '--- Installing Packages'"
- "pip install -r requirements_torch.txt"
- "pip install -e '.[metrics,torch]'"
- "pip install pdoc3 awscli comet_ml"
- "echo '+++ Compiling Docs'"
- "pdoc3 datatap --html"
- "echo '+++ Uploading Docs'"
- "cd html/datatap && aws s3 cp --recursive --acl public-read . s3://docs.datatap.dev/"
plugins:
- docker#v3.7.0:
image: "python:3.8"
volumes:
- "/var/lib/buildkite-agent/.aws/:/root/.aws/"
if: build.branch == "master"
- label: ":github: Pushing to github"
commands:
- "git remote add gh [email protected]:Zensors/datatap-python.git || true"
- "git push gh HEAD:${BUILDKITE_BRANCH}"
if: "build.branch !~ /^refs/"