-
Notifications
You must be signed in to change notification settings - Fork 9
/
Makefile
55 lines (43 loc) · 1.19 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
all: help
.PHONY: help
help:
@echo "Available targets:"
@echo "- package: build python package"
@echo "- test: run all tests"
@echo "- test-pylint: check code with pylint"
@echo "- test-bandit: security check with bandit"
@echo "- test-int: run integration tests"
@echo "- osc-api-update: update to last osc-api version"
@echo "- clean: clean temp files, venv, etc"
.PHONY: test
test: clean test-pylint test-bandit test-int package
@echo "All tests: OK"
.PHONY: test-pylint
test-pylint: .venv/ok
@./scripts/test_pylint.sh
.PHONY: test-bandit
test-bandit: .venv/ok
@./scripts/test_bandit.sh
.PHONY: test-int
test-int: .venv/ok init
./scripts/test_int.sh
.PHONY: package
package: .venv/ok init
@./scripts/package.sh
.PHONY: upload-package
upload-package: package
@./scripts/upload_package.sh
.PHONY: osc-api-update
osc-api-update:
cd osc_sdk_python/osc-api/; git fetch; git checkout origin/master; cd ..; git add osc-api
.PHONY: init
init: osc_sdk_python/osc-api/outscale.yaml
@echo Initialization: OK
osc_sdk_python/osc-api/outscale.yaml:
git submodule update --init .
.venv/ok:
@./scripts/setup_venv.sh
.PHONY: clean
clean:
@echo cleaning...
rm -rf .venv osc_sdk_python.egg-info dist