diff options
Diffstat (limited to 'tools/epfl-build-2.x.x')
-rwxr-xr-x | tools/epfl-build-2.x.x | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/tools/epfl-build-2.x.x b/tools/epfl-build-2.x.x new file mode 100755 index 0000000000..7bc884c162 --- /dev/null +++ b/tools/epfl-build-2.x.x @@ -0,0 +1,35 @@ +#!/usr/bin/env bash +# + +[[ $# -gt 0 ]] || { + echo "Usage: $0 <version> [publish destination]" + echo "" + exit 0 +} + +version="$1" +shift +rsyncDest="$1" + +# should not be hardcoded +mavenSettings="/home/linuxsoft/apps/hudson-maven-settings/settings.xml" + +# main build sequence +ant all.clean +./pull-binary-libs.sh +ant nightly +ant docscomp + +# publish nightly build +if [ -n "$rsyncDest" ]; then + echo "Copying nightly build to $rsyncDest" + # Archive Scala nightly distribution + rsync -az dists/archives/ "$rsyncDest/distributions" + # SKIP PUBLISHING DOCS IN 2.8.X BRANCH + if [[ $version != "2.8.x" ]]; then + rsync -az build/scaladoc/ "$rsyncDest/docs" + fi + rsync -az dists/sbaz/ "$rsyncDest/sbaz" + # Deploy the maven artifacts on scala-tools.org + ( cd dists/maven/latest && ant deploy.snapshot -Dsettings.file="$mavenSettings" ) +fi |