blob: 04819c4154a995bd47836038da86ed72561b003e [file] [log] [blame]
Matteo Scandolo7414cff2021-07-23 08:48:54 -07001# Copyright 2021-present Open Networking Foundation
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15branch=`cat .gitreview | grep branch | cut -d '=' -f2`
16
17help: # @HELP Print the command options
18 @echo
19 @echo "\033[0;31m VOLTHA HELM CHARTS \033[0m"
20 @echo
21 @grep -E '^.*: .* *# *@HELP' $(MAKEFILE_LIST) \
22 | sort \
23 | awk ' \
24 BEGIN {FS = ": .* *# *@HELP"}; \
25 {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}; \
26 '
27
28tagcollisionreject.sh:
29 @curl -o tagcollisionreject.tmp.sh https://raw.githubusercontent.com/opencord/ci-management/master/jjb/shell/tagcollisionreject.sh
30 @echo 6dc8352d47f415e003dbddc30ede194ca304907d25f1c2a384f928083194860f tagcollisionreject.tmp.sh | sha256sum --check
31 @mv tagcollisionreject.tmp.sh tagcollisionreject.sh
32
33test-tags: tagcollisionreject.sh
34 @bash ./tagcollisionreject.sh
35
36helm-repo-tools:
37 git clone "https://gerrit.opencord.org/helm-repo-tools"
38
39test: test-tags helm-repo-tools # @HELP Makes sure the versions used in the charts are valid
40 @COMPARISON_BRANCH=origin/$(branch) ./helm-repo-tools/chart_version_check.sh
41
42clean: # @HELP Removes all files downloaded to run the tests
43 rm -rf helm-repo-tools
44 rm tagcollisionreject.*