Skip to content

Commit abfc737

Browse files
committed
Separated build and publish scripts.
Unified further with build options.
1 parent ff7f9fc commit abfc737

File tree

3 files changed

+60
-35
lines changed

3 files changed

+60
-35
lines changed

tools/epfl-build

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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

tools/epfl-build-2.x.x

Lines changed: 0 additions & 35 deletions
This file was deleted.

tools/epfl-publish

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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" )

0 commit comments

Comments
 (0)