aboutsummaryrefslogtreecommitdiffstats
path: root/makefile
diff options
context:
space:
mode:
authorTony Hansen <tony@att.com>2017-09-19 18:49:04 +0000
committerTony Hansen <tony@att.com>2017-09-21 05:58:48 +0000
commitbb38402983b62bb11423491d2dcaf60483f1cf42 (patch)
tree155d6d3506eb27b544393069020974d5b0aa57db /makefile
parentb367b945efd5118c7d8d28781cc4bba9e0d99aff (diff)
updates to deployment
changes for deployment stage resynchronize seed code add missing getopt dependency Change-Id: I2ec2655edcb93bdf5693565fe2ed59af7eedf16f Signed-off-by: Tony Hansen <tony@att.com> Issue: CCSDK-18 Signed-off-by: Tony Hansen <tony@att.com>
Diffstat (limited to 'makefile')
-rw-r--r--makefile44
1 files changed, 39 insertions, 5 deletions
diff --git a/makefile b/makefile
index df92dbc..7d4e6ab 100644
--- a/makefile
+++ b/makefile
@@ -4,28 +4,62 @@ all:
STAGEDIRS=cdf pgaas
build:
+ @echo "================ make build ================"
for i in $(STAGEDIRS); do ( cd $$i/src && $(MAKE) build ) done
clean:
+ @echo "================ make clean ================"
for i in $(STAGEDIRS); do ( cd $$i/src && $(MAKE) clean ) done
stage:
+ @echo "================ make stage ================"
for i in $(STAGEDIRS); do ( cd $$i/src && $(MAKE) stage ) done
upload-javadocs:
+ @echo "================ make upload-javadocs ================"
for i in $(STAGEDIRS); do ( cd $$i/src && $(MAKE) upload-javadocs ) done
debian:
- for i in $(STAGEDIRS); do ( cd $$i/src && $(MAKE) debian ) done
-
+ @echo "================ make debian ================"
+ export PATH=$$PATH:$$(pwd)/bin; for i in $(STAGEDIRS); do ( cd $$i/src && $(MAKE) debian ) done
+# for ONAP Maven
pgaas:
-generate-sources:
+ @echo "================ make pgaas ================"
+
+generate-sources:
+ @echo "================ make generate-sources ================"
+
compile: build
+ @echo "================ make compile ================"
-test:
- # should run unit tests here
package:
+ @echo "================ make package ================"
+
+test:
+ @echo "================ make test ================"
+
install:
+ @echo "================ make install ================"
+
+deploy:
+ @echo "================ make deploy ================"
+ rm -f $$HOME/.netrc ; \
+ REPO=$$MVN_NEXUSPROXY/content/sites/raw/$$MVN_PROJECT_GROUPID ; \
+ hostport=$$(echo $$REPO | cut -f3 -d /) ; \
+ host=$$(echo $$hostport | cut -f1 -d:) ; \
+ settings=$${SETTINGS_FILE:-$$HOME/.m2/settings.xml} ; \
+ echo machine $$host login $$(xpath -q -e "//servers/server[id='$$MVN_SERVER_ID']/username/text()" $$settings) password $$(xpath -q -e "//servers/server[id='$$MVN_SERVER_ID']/password/text()" $$settings) >$$HOME/.netrc ; \
+ chmod 600 $$HOME/.netrc ; \
+ case "$$MVN_PROJECT_VERSION" in *SNAPSHOT ) export subdir=snapshots SNAPSHOT=-SNAPSHOT ;; * ) export subdir=releases SNAPSHOT= ;; esac ; \
+ export MVN_VERSION_ONLY=$${MVN_PROJECT_VERSION%%-SNAPSHOT} ; \
+ REPO=$$MVN_NEXUSPROXY/content/sites/raw/$$MVN_PROJECT_GROUPID/$$subdir/debs ; \
+ export REPACKAGEDEBIANUPLOAD="set -x; curl -X PUT -H 'Content-Type: application/octet-stream' --netrc --upload-file '{0}' '$$REPO/{1}'" ; \
+ export PATH=$$PATH:$$(pwd)/bin; \
+ env | sort ; \
+ for i in $(STAGEDIRS); do ( cd $$i/src && $(MAKE) debian ) done
+ # curl -vkn --netrc-file "${NETRC}" --upload-file "${OUTPUT_FILE}" -X PUT -H "Content-Type: $OUTPUT_FILE_TYPE" "${SEND_TO}/${OUTPUT_FILE}-${MVN_PROJECT_VERSION}-${TIMESTAMP}"
+ # curl -vkn --netrc-file "${NETRC}" --upload-file "${OUTPUT_FILE}" -X PUT -H "Content-Type: $OUTPUT_FILE_TYPE" "${SEND_TO}/${OUTPUT_FILE}-${MVN_PROJECT_VERSION}"
+ # curl -vkn --netrc-file "${NETRC}" --upload-file "${OUTPUT_FILE}" -X PUT -H "Content-Type: $OUTPUT_FILE_TYPE" "${SEND_TO}/${OUTPUT_FILE}"