File tree Expand file tree Collapse file tree 3 files changed +60
-35
lines changed Expand file tree Collapse file tree 3 files changed +60
-35
lines changed Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+ #
3+ # builds nightlies
4+
5+ [[ $# -gt 0 ]] || {
6+ cat << EOM
7+ Usage: $0 <version> [opt opt ...]
8+
9+ Everything after the version is supplied to scalac and partest.
10+ Example: $0 -Xcheckinit -Ycheck:all
11+
12+ Environment variables:
13+
14+ EXTRA_TARGETS Additional ant targets to run after nightly
15+
16+ EOM
17+ exit 0
18+ }
19+
20+ # version isn't actually used at present.
21+ scalaVersion=" $1 " && shift
22+ scalaArgs=" -Dscalac.args=\" $@ \" -Dpartest.scalac_opts=\" $@ \" "
23+
24+ ant all.clean && ./pull-binary-libs.sh
25+
26+ ant $scalaArgs build-opt &&
27+ ant $scalaArgs nightly &&
28+ for target in $EXTRA_TARGETS ; do ant $target ; done
29+ # [[ -n "$BUILD_DOCSCOMP" ]] && ant docscomp
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+ #
3+ # publishes nightly build
4+
5+ [[ $# -eq 2 ]] || {
6+ cat << EOM
7+ Usage: $0 <scala version> <rsync dest>
8+ EOM
9+ exit 0
10+ }
11+
12+ [[ -d dists/archives ]] || {
13+ echo " Can't find build, has it completed? No directory at dists/archives"
14+ exit 1
15+ }
16+
17+ version=" $1 "
18+ rsyncDest=" $2 "
19+
20+ # should not be hardcoded
21+ mavenSettings=" /home/linuxsoft/apps/hudson-maven-settings/settings.xml"
22+
23+ echo " Copying nightly build to $rsyncDest "
24+ # Archive Scala nightly distribution
25+ rsync -az dists/archives/ " $rsyncDest /distributions"
26+ # don't publish docs in 2.8.x
27+ [[ $version == " 2.8.x" ]] || rsync -az build/scaladoc/ " $rsyncDest /docs"
28+ # sbaz
29+ [[ -d dists/sbaz ]] && rsync -az dists/sbaz/ " $rsyncDest /sbaz"
30+ # Deploy the maven artifacts on scala-tools.org
31+ ( cd dists/maven/latest && ant deploy.snapshot -Dsettings.file=" $mavenSettings " )
You can’t perform that action at this time.
0 commit comments