-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathMakefile
34 lines (23 loc) · 948 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
IMAGE_NAME?=mtconnect-python
build:
docker build --tag ${IMAGE_NAME} .
develop: build
./scripts/run_develop_container.sh ${IMAGE_NAME} bash
run: build
./scripts/run_container.sh ${IMAGE_NAME} bash
test: build
./scripts/run_develop_container.sh ${IMAGE_NAME} scripts/test_package.sh
test.format: build
./scripts/run_develop_container.sh ${IMAGE_NAME} scripts/format_package.sh --check
format: build
./scripts/run_develop_container.sh ${IMAGE_NAME} scripts/format_package.sh
lint: build
./scripts/run_develop_container.sh ${IMAGE_NAME} scripts/lint_package.sh
PYPI_USER?=${PYPI_USER}
PYPI_PASSWORD?=${PYPI_PASSWORD}
publish: build
./scripts/run_develop_container.sh ${IMAGE_NAME} scripts/publish_package.sh
# This is only here for completeness. This should only be called via CI
VERSION?=${VERSION}
version: build
./scripts/run_develop_container.sh ${IMAGE_NAME} scripts/set_version.sh ${VERSION}