Skip to content

Commit

Permalink
Adding make option to enable rpm check
Browse files Browse the repository at this point in the history
Change-Id: Ib4777614e21109839be9256aa41138cc6ba99201
Reviewed-on: http://photon-jenkins.eng.vmware.com/298
Tested-by: jenkins-photon <[email protected]>
Reviewed-by: Sharath George
  • Loading branch information
dthaluru authored and Sharath George committed Jan 6, 2016
1 parent f097124 commit f500105
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@ else
PHOTON_PUBLISH_RPMS := publish-rpms
endif

ifdef PHOTON_ENABLE_RPMCHECK
PHOTON_RPMCHECK_OPTION := -u
else
PHOTON_RPMCHECK_OPTION :=
endif

TOOLS_BIN := $(SRCROOT)/tools/bin
CONTAIN := $(TOOLS_BIN)/contain

Expand Down Expand Up @@ -84,6 +90,7 @@ packages-micro: check $(PHOTON_STAGE) $(PHOTON_PUBLISH_RPMS) $(PHOTON_SOURCES) g
-d $(PHOTON_DIST_TAG) \
-n $(PHOTON_BUILD_NUMBER) \
-v $(PHOTON_RELEASE_VERSION) \
$(PHOTON_RPMCHECK_OPTION) \
-t ${THREADS}

minimal: minimal-iso
Expand Down Expand Up @@ -146,6 +153,7 @@ packages-minimal: check $(PHOTON_STAGE) $(PHOTON_PUBLISH_RPMS) $(PHOTON_SOURCES)
-d $(PHOTON_DIST_TAG) \
-n $(PHOTON_BUILD_NUMBER) \
-v $(PHOTON_RELEASE_VERSION) \
$(PHOTON_RPMCHECK_OPTION) \
-t ${THREADS}

iso: check $(PHOTON_STAGE) $(PHOTON_PACKAGES) ostree-repo
Expand Down Expand Up @@ -190,6 +198,7 @@ packages: check $(PHOTON_STAGE) $(PHOTON_PUBLISH_RPMS) $(PHOTON_SOURCES) $(CONTA
-d $(PHOTON_DIST_TAG) \
-n $(PHOTON_BUILD_NUMBER) \
-v $(PHOTON_RELEASE_VERSION) \
$(PHOTON_RPMCHECK_OPTION) \
-t ${THREADS}

updated-packages: check $(PHOTON_STAGE) $(PHOTON_PUBLISH_RPMS) $(PHOTON_SOURCES) $(CONTAIN) generate-dep-lists
Expand All @@ -208,6 +217,7 @@ updated-packages: check $(PHOTON_STAGE) $(PHOTON_PUBLISH_RPMS) $(PHOTON_SOURCES)
-n $(PHOTON_BUILD_NUMBER) \
-v $(PHOTON_RELEASE_VERSION) \
-k $(PHOTON_INPUT_RPMS_DIR) \
$(PHOTON_RPMCHECK_OPTION) \
-t ${THREADS}

tool-chain-stage1: check $(PHOTON_STAGE) $(PHOTON_PUBLISH_RPMS) $(PHOTON_SOURCES) $(CONTAIN) generate-dep-lists
Expand All @@ -227,6 +237,7 @@ tool-chain-stage1: check $(PHOTON_STAGE) $(PHOTON_PUBLISH_RPMS) $(PHOTON_SOURCES
-d $(PHOTON_DIST_TAG) \
-n $(PHOTON_BUILD_NUMBER) \
-v $(PHOTON_RELEASE_VERSION) \
$(PHOTON_RPMCHECK_OPTION) \
-m stage1

tool-chain-stage2: check $(PHOTON_STAGE) $(PHOTON_PUBLISH_RPMS) $(PHOTON_SOURCES) $(CONTAIN) generate-dep-lists
Expand All @@ -246,6 +257,7 @@ tool-chain-stage2: check $(PHOTON_STAGE) $(PHOTON_PUBLISH_RPMS) $(PHOTON_SOURCES
-d $(PHOTON_DIST_TAG) \
-n $(PHOTON_BUILD_NUMBER) \
-v $(PHOTON_RELEASE_VERSION) \
$(PHOTON_RPMCHECK_OPTION) \
-m stage2


Expand Down Expand Up @@ -454,6 +466,7 @@ check-packer-ovf-plugin:
-d $(PHOTON_DIST_TAG) \
-n $(PHOTON_BUILD_NUMBER) \
-v $(PHOTON_RELEASE_VERSION) \
$(PHOTON_RPMCHECK_OPTION) \
-l $(PHOTON_LOGS_DIR)

$(TOOLS_BIN):
Expand Down

0 comments on commit f500105

Please sign in to comment.