3 # ===========LICENSE_START========================================================
4 # ================================================================================
5 # Copyright (c) 2017 AT&T Intellectual Property. All rights reserved.
6 # ================================================================================
7 # Licensed under the Apache License, Version 2.0 (the "License");
8 # you may not use this file except in compliance with the License.
9 # You may obtain a copy of the License at
11 # http://www.apache.org/licenses/LICENSE-2.0
13 # Unless required by applicable law or agreed to in writing, software
14 # distributed under the License is distributed on an "AS IS" BASIS,
15 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 # See the License for the specific language governing permissions and
17 # limitations under the License.
18 # ============LICENSE_END=========================================================
20 # ECOMP is a trademark and service mark of AT&T Intellectual Property.
25 echo "running script: [$0] for module [$1] at stage [$2]"
27 MVN_PROJECT_MODULEID="$1"
29 PROJECT_ROOT=$(dirname $0)
31 # expected environment variables
32 if [ -z "${MVN_NEXUSPROXY}" ]; then
33 echo "MVN_NEXUSPROXY environment variable not set. Cannot proceed"
36 if [ -z "$SETTINGS_FILE" ]; then
37 echo "SETTINGS_FILE environment variable not set. Cannot proceed"
44 source "${PROJECT_ROOT}"/mvn-phase-lib.sh
47 # Customize the section below for each project
50 echo "==> clean phase script"
53 rm -rf ./venv-* ./*.wgn ./site
56 echo "==> generate-sources phase script"
60 echo "==> compile phase script"
63 echo "==> test phase script"
66 echo "==> package phase script"
69 echo "==> install phase script"
72 echo "==> deploy phase script"
73 case $MVN_PROJECT_MODULEID in
78 source ./venv-doc/bin/activate
79 pip install --no-cache-dir --upgrade pip
80 pip install --no-cache-dir --upgrade 'mkdocs==0.16.3' mkdocs-material
88 # build docker image from Docker file (under module dir) and push to registry
92 echo "====> unknown mvn project module"
97 echo "==> unprocessed phase"