-
Notifications
You must be signed in to change notification settings - Fork 42
/
Copy pathMakefile
48 lines (35 loc) · 1.31 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
SHELL := /usr/bin/env bash
all:
@echo >&2 "Only 'make shellcheck', 'make test', or 'make test-openshift-4' are allowed"
.PHONY: test all check-failures check-latest-imagestream test test-openshift-4 push-to-containers
TEST_LIB_TESTS = \
path_foreach \
random_string \
test_npm \
image_availability \
run_all_tests\
public_image_name
$(TEST_LIB_TESTS):
@echo " RUN TEST '$@'" ; \
$(SHELL) tests/test-lib/$@
check-test-lib: $(TEST_LIB_TESTS)
test: check-failures check-latest-imagestream
TESTED_SCENARIO=test tests/remote-containers.sh
test-openshift-4: check-failures check-latest-imagestream
TESTED_SCENARIO=test-openshift-4 tests/remote-containers.sh
shellcheck:
./run-shellcheck.sh `git ls-files *.sh`
pre-commit-check:
pre-commit run --all
[[ -d "./.git/hooks" && -n `find ./.git/hooks/ -name "pre-commit"` ]] || \
echo "Note: Install pre-commit hooks by 'pre-commit install' and you'll never have to run this check manually again."
check-failures: check-test-lib
cd tests/failures/check && make tag && ! make check && make clean
cd tests/failures/check && ./check_skip_squash.sh
check-latest-imagestream:
cd tests && ./check_imagestreams.sh
check-betka:
cd tests && ./check_betka.sh
push-as-submodule:
@echo "THIS COULD BE DANGEROUS, WILL PUSH TO ALL SCLORG CONTAINER REPOSITORIES"
./push_as_submodule.sh