forked from duckietown/duckietown-shell
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
60 lines (39 loc) · 851 Bytes
/
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
60
all:
bump-upload:
$(MAKE) bump
$(MAKE) upload
bump: # v2
bumpversion patch
git push --tags
git push
upload:
rm -f dist/*
rm -rf src/*.egg-info
python3 setup.py sdist
twine upload --skip-existing --verbose dist/*
branch=$(shell git rev-parse --abbrev-ref HEAD)
tag_rpi=duckietown/rpi-duckietown-shell:$(branch)
tag_x86=duckietown/duckietown-shell:$(branch)
build: build-rpi build-x86
push: push-rpi push-x86
build-rpi:
docker build -t $(tag_rpi) -f Dockerfile.rpi .
build-x86:
docker build -t $(tag_x86) -f Dockerfile .
build-x86-no-cache:
docker build -t $(tag_x86) -f Dockerfile --no-cache .
push-rpi:
docker push $(tag_rpi)
push-x86:
docker push $(tag_x86)
test:
make -C testing
black:
black -l 110 lib
pre-circle-tests:
git --help
post-circle-tests:
git --help
dts --set-version daffy
dts help
dts version