blob: 7386da3914ae90b1c720c5165e0f1ac95de5d071 [file] [log] [blame]
Joey Armstrongebc25f82022-11-04 15:10:51 -04001# Copyright 2021-2022 Open Networking Foundation (ONF) and the ONF Contributors
Matteo Scandolo7414cff2021-07-23 08:48:54 -07002#
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
Joey Armstrongebc25f82022-11-04 15:10:51 -040015branch=`awk -F\= '/branch=/ {print $2}' .gitreview`
Matteo Scandolo7414cff2021-07-23 08:48:54 -070016
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
Joey Armstrongebc25f82022-11-04 15:10:51 -040043 $(RM) -r helm-repo-tools
44 $(RM) tagcollisionreject.*