forked from pachyderm/python-pachyderm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
59 lines (50 loc) · 1.49 KB
/
Makefile
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
SHELL := /bin/bash
docs:
python3 setup.py clean build install
pdoc --html --html-dir ./docs ./src/python_pachyderm
docker-build-proto:
pushd proto && \
docker build -t pachyderm_python_proto .
proto: docker-build-proto
find ./proto/pachyderm/src/client -maxdepth 4 -regex ".*\.proto" \
| xargs tar cf - \
| docker run -i pachyderm_python_proto \
| tar xf -
init:
git submodule update --init
ci-install:
pushd proto/pachyderm && \
sudo ./etc/testing/ci/before_install.sh && \
curl -o /tmp/pachctl.deb -L https://github.com/pachyderm/pachyderm/releases/download/v$$(cat ../../VERSION)/pachctl_$$(cat ../../VERSION)_amd64.deb && \
sudo dpkg -i /tmp/pachctl.deb && \
popd
pip install tox tox-travis
ci-setup:
docker version
which pachctl
pushd proto/pachyderm && \
make launch-kube && \
popd
pachctl deploy local
until timeout 1s ./proto/pachyderm/etc/kube/check_ready.sh app=pachd; do sleep 1; done
pachctl version
sync:
# NOTE: This task must be run like:
# PACHYDERM_VERSION=1.2.3 make sync
if [[ -z "$$PACHYDERM_VERSION" ]]; then \
exit 1; \
fi
echo $$PACHYDERM_VERSION > VERSION
# Will update the protos to match the VERSION file
pushd proto/pachyderm && \
git fetch --all && \
git checkout v$$(cat ../../VERSION) && \
popd
# Rebuild w latest proto files
make proto
release:
# Bump the version
expr $$(cat BUILD_NUMBER_NUMBER) + 1 > BUILD_NUMBER_NUMBER
python setup.py sdist
twine upload dist/*
.PHONY: docker-build-proto init ci-install ci-setup sync release