-
Notifications
You must be signed in to change notification settings - Fork 68
Expand file tree
/
Copy pathMakefile
More file actions
64 lines (53 loc) · 2.09 KB
/
Copy pathMakefile
File metadata and controls
64 lines (53 loc) · 2.09 KB
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
# Every project in this list has a Makefile with a `test` target that provisions
# what it needs, asserts, and cleans up after itself — with no credentials. That
# is the contract; see AGENTS.md.
PROJECTS := \
oathkeeper/01-basic \
oathkeeper/02-authenticators \
oathkeeper/03-header-mutator \
oathkeeper/04-hydrator-mutator \
oathkeeper/05-nginx-oathkeeper \
oathkeeper/06-nginx-hydrator \
oathkeeper/07-traefik-decision \
oathkeeper/08-envoy-header \
oathkeeper/09-oathkeeper-websockets \
oathkeeper/10-network \
oathkeeper/11-kratos-keto \
oathkeeper/12-multiple-authenticators \
kratos-oathkeeper-kong \
kratos-keto-flask \
django-ory-cloud \
dotnet-ory-network \
flutter-ory-network \
ory-actions/vpncheck-py
# The examples bind the same ports and the same Docker resources, so the suite
# is serial by design. `make -j` is not supported.
.NOTPARALLEL:
.PHONY: test
test: test-smoke $(addprefix test-,$(PROJECTS)) # runs the whole suite; the default gate
.PHONY: test-smoke
test-smoke: # regression tests for the HTTP assertion runner
docker build --target test -t awesome-ory/smoke-runner-tests _common/smoke
docker run --rm --network none awesome-ory/smoke-runner-tests
.PHONY: $(addprefix test-,$(PROJECTS))
$(addprefix test-,$(PROJECTS)): test-%:
@$(MAKE) --no-print-directory -C $* test
.PHONY: test-network
test-network: # the credentialed lane; skips loudly when no project is configured
@$(MAKE) --no-print-directory -C oathkeeper/10-network test-network
.PHONY: health
health: # runs everything, tolerates failures, and records the result
@./_common/health.sh $(PROJECTS)
format: .bin/ory node_modules # formats the source code
.bin/ory dev headers copyright --type=open-source
npm exec -- prettier --write .
licenses: .bin/licenses node_modules # checks open-source licenses
.bin/licenses
.bin/licenses: Makefile
curl https://raw.githubusercontent.com/ory/ci/master/licenses/install | sh
.bin/ory: Makefile
curl https://raw.githubusercontent.com/ory/meta/master/install.sh | bash -s -- -b .bin ory v0.1.48
touch .bin/ory
node_modules: package-lock.json
npm ci
touch node_modules