Files
alfresco-community-repo/scripts/travis/build.sh
alandavis f6c87dddbe Add AMPS env var to alias to optionally build AMPs
Removed trigger of downstream project on feature branch to save agents
2021-04-27 17:31:23 +01:00

25 lines
806 B
Bash

#!/usr/bin/env bash
echo "=========================== Starting Build Script ==========================="
PS4="\[\e[35m\]+ \[\e[m\]"
set -vex
pushd "$(dirname "${BASH_SOURCE[0]}")/../../"
source "$(dirname "${BASH_SOURCE[0]}")/build_functions.sh"
if isBranchBuild && [ "${TRAVIS_BRANCH}" = "master" ] && [ "${TRAVIS_BUILD_STAGE_NAME,,}" = "release" ] ; then
# update ":latest" image tags on remote repositories by using the maven *internal* profile
PROFILES="-Pinternal"
else
# build the ":latest" image tags locally with the maven *communityDocker* profile
PROFILES="-PcommunityDocker"
fi
# Build the current project
mvn -B -V install -DskipTests -Dmaven.javadoc.skip=true "${PROFILES}" -Pags
popd
set +vex
echo "=========================== Finishing Build Script =========================="