mirror of
https://github.com/Alfresco/alfresco-transform-core.git
synced 2025-05-12 17:04:48 +00:00
22 lines
701 B
Bash
22 lines
701 B
Bash
#!/usr/bin/env bash
|
|
|
|
echo "=========================== Starting Build&Test Script ==========================="
|
|
PS4="\[\e[35m\]+ \[\e[m\]"
|
|
set -vex
|
|
pushd "$(dirname "${BASH_SOURCE[0]}")/../"
|
|
|
|
# Always build the image, but only publish from the "master" branch
|
|
[ "${TRAVIS_PULL_REQUEST}" = "false" ] && [ "${TRAVIS_BRANCH}" = "master" ] && PROFILE="internal" || PROFILE="local"
|
|
|
|
mvn -B -U \
|
|
clean install \
|
|
-DadditionalOption=-Xdoclint:none -Dmaven.javadoc.skip=true \
|
|
"-P${PROFILE},docker-it-setup"
|
|
|
|
docker ps -a -q | xargs -r -l docker stop ; docker ps -a -q | xargs -r -l docker rm
|
|
|
|
popd
|
|
set +vex
|
|
echo "=========================== Finishing Build&Test Script =========================="
|
|
|