-
Notifications
You must be signed in to change notification settings - Fork 85
/
Makefile
executable file
·81 lines (61 loc) · 1.5 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
.PHONY: build clean
all: test build
default: test build
fmt:
go fmt ./...
format: fmt
vendor:
go mod vendor
mod:
go mod tidy -v
vet:
go vet
lint:
./scripts/lint.sh
test: mod lint
./scripts/test.sh
test_functional:
./scripts/test_functional.sh
build:
./scripts/build.sh
generate:
go generate ./...
# deploy builds and deploys go code
# to Lamdbas and CodeBuilds in AWS.
# Before running this command, you will need
deploy: clean build
cd modules && \
ns=$$(terraform output namespace) && \
bucket=$$(terraform output artifacts_bucket_name) && \
cd .. && \
./scripts/deploy.sh bin/build_artifacts.zip $${ns} $${bucket}
# `make documentation`
#
# Generates DCE docs as HTML
# in the /docs/_build/html directory
#
# This repo uses [Sphinx](http://www.sphinx-doc.org/en/master/) to generate documentation from markdown files
#
# Before running this make command, you must first:
#
# - Install [Python v3+](https://www.python.org/downloads/)
# - Run `pip install -r ./docs/requirements.txt` to install Sphinx
#
documentation:
./scripts/generate-awsnuke-docs.sh
cd docs && make html
# Serve the documentation locally
# Uses https://pypi.org/project/sphinx-autobuild/
#
# Before running this make command, you must first:
#
# - Install [Python v3+](https://www.python.org/downloads/)
# - Run `pip install -r ./docs/requirements.txt` to install Sphinx
serve_docs: documentation
cd docs && make livehtml
install:
go install
clean:
rm -rf ./bin ./vendor ./html-doc ./site
setup:
./scripts/install_ci.sh