Joey Armstrong | 7ee6526 | 2023-06-02 09:55:04 -0400 | [diff] [blame] | 1 | # -*- makefile -*- |
| 2 | # ----------------------------------------------------------------------- |
Joey Armstrong | 518f357 | 2024-02-11 07:56:25 -0500 | [diff] [blame] | 3 | # Copyright 2022-2024 Open Networking Foundation (ONF) and the ONF Contributors |
Joey Armstrong | 7ee6526 | 2023-06-02 09:55:04 -0400 | [diff] [blame] | 4 | # |
| 5 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | # you may not use this file except in compliance with the License. |
| 7 | # You may obtain a copy of the License at |
| 8 | # |
| 9 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | # |
| 11 | # Unless required by applicable law or agreed to in writing, software |
| 12 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | # See the License for the specific language governing permissions and |
| 15 | # limitations under the License. |
| 16 | # ----------------------------------------------------------------------- |
| 17 | # Intent: Helper makefile target used to setup for a release |
| 18 | # ----------------------------------------------------------------------- |
| 19 | |
| 20 | $(if $(DEBUG),$(warning ENTER)) |
| 21 | |
| 22 | ##-------------------## |
| 23 | ##---] GLOBALS [---## |
| 24 | ##-------------------## |
| 25 | |
| 26 | # TODO: Library function $(call mk-path,makefiles/release/targets.mk) |
| 27 | release-mk-top := $(abspath $(lastword $(MAKEFILE_LIST))) |
| 28 | release-mk-top := $(subst /makefiles/release/targets.mk,$(null),$(release-mk-top)) |
| 29 | |
| 30 | GIT ?= /usr/bin/env git |
| 31 | |
Joey Armstrong | 7bcb578 | 2023-06-07 12:25:57 -0400 | [diff] [blame] | 32 | ##--------------------## |
| 33 | ##---] INCLUDES [---## |
| 34 | ##--------------------## |
Joey Armstrong | dd33449 | 2023-07-09 17:59:02 -0400 | [diff] [blame] | 35 | include $(ONF_MAKEDIR)/release/voltha-versions.mk |
| 36 | include $(ONF_MAKEDIR)/release/targets/voltha-certification.mk |
| 37 | include $(ONF_MAKEDIR)/release/targets/voltha-e2e.mk |
| 38 | include $(ONF_MAKEDIR)/release/targets/voltha-nightly-jobs.mk |
Joey Armstrong | 7ee6526 | 2023-06-02 09:55:04 -0400 | [diff] [blame] | 39 | |
Joey Armstrong | 7bcb578 | 2023-06-07 12:25:57 -0400 | [diff] [blame] | 40 | # last-release := voltha-2.11 |
| 41 | last-release := $(voltha-release-last) |
Joey Armstrong | f320860 | 2023-06-03 15:12:23 -0400 | [diff] [blame] | 42 | |
Joey Armstrong | 7ee6526 | 2023-06-02 09:55:04 -0400 | [diff] [blame] | 43 | |
| 44 | ##-------------------## |
| 45 | ##---] TARGETS [---## |
| 46 | ##-------------------## |
| 47 | all: help |
| 48 | |
| 49 | ## --------------------------------------------------------------------------- |
Joey Armstrong | 7bcb578 | 2023-06-07 12:25:57 -0400 | [diff] [blame] | 50 | ## Intent: Build these deps to create a new branch/release area |
Joey Armstrong | 7ee6526 | 2023-06-02 09:55:04 -0400 | [diff] [blame] | 51 | ## --------------------------------------------------------------------------- |
Joey Armstrong | 7b1c9f2 | 2023-06-12 12:39:40 -0400 | [diff] [blame] | 52 | create-jobs-release += create-jobs-release-bat |
Joey Armstrong | f320860 | 2023-06-03 15:12:23 -0400 | [diff] [blame] | 53 | create-jobs-release += create-jobs-release-certification |
Joey Armstrong | 7ee6526 | 2023-06-02 09:55:04 -0400 | [diff] [blame] | 54 | create-jobs-release += create-jobs-release-nightly |
| 55 | create-jobs-release += create-jobs-release-units |
Joey Armstrong | 7bcb578 | 2023-06-07 12:25:57 -0400 | [diff] [blame] | 56 | create-jobs-release += create-jobs-release-e2e |
Joey Armstrong | 7ee6526 | 2023-06-02 09:55:04 -0400 | [diff] [blame] | 57 | |
| 58 | create-jobs-release : $(create-jobs-release) |
| 59 | |
| 60 | @echo |
| 61 | $(GIT) status |
| 62 | |
| 63 | ## --------------------------------------------------------------------------- |
| 64 | ## Intent: Create branch driven pipeline test jobs. |
| 65 | ## --------------------------------------------------------------------------- |
| 66 | units-yaml := $(release-mk-top)/jjb/pipeline/voltha/$(voltha-version) |
| 67 | units-root := $(subst /$(voltha-version),$(null),$(units-yaml)) |
| 68 | create-jobs-release-units : $(units-yaml) |
| 69 | $(units-yaml): |
| 70 | |
| 71 | @echo |
| 72 | @echo "** Create branch driven pipeline: unit tests" |
| 73 | $(HIDE)mkdir -vp $@ |
| 74 | rsync -r --checksum $(units-root)/master/. $@/. |
| 75 | $(HIDE)/bin/ls -l $(units-root) |
| 76 | |
| 77 | ## --------------------------------------------------------------------------- |
| 78 | ## Intent: Create branch driven nightly test jobs. |
Joey Armstrong | 7ee6526 | 2023-06-02 09:55:04 -0400 | [diff] [blame] | 79 | ## --------------------------------------------------------------------------- |
Joey Armstrong | 7bcb578 | 2023-06-07 12:25:57 -0400 | [diff] [blame] | 80 | sterile-create-jobs-release := $(addprefix sterile-,$(create-jobs-release)) |
| 81 | sterile-create-jobs-release : $(sterile-create-jobs-release) |
Joey Armstrong | 7ee6526 | 2023-06-02 09:55:04 -0400 | [diff] [blame] | 82 | $(RM) -r $(units-yaml) |
| 83 | |
| 84 | $(if $(DEBUG),$(warning LEAVE)) |
| 85 | |
| 86 | # [EOF] |