summaryrefslogblamecommitdiff
path: root/tools/epfl-build
blob: dd66307de39b28067741c1aeddb6a43643f828b3 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12











                                                                 
                                                                 












                                                             
                                                       
                                            
#!/usr/bin/env bash
#
# builds nightlies

[[ $# -gt 0 ]] || {
  cat <<EOM
Usage: $0 <version> [opt opt ...]

  Everything after the version is supplied to scalac and partest.
  Example:   $0 -Xcheckinit -Ycheck:all

Environment variables:
  extra_ant_targets   Additional ant targets to run after nightly

EOM
  exit 0
}

# version isn't actually used at present.
scalaVersion="$1" && shift
scalaArgs="-Dscalac.args=\"$@\" -Dpartest.scalac_opts=\"$@\""

ant all.clean && ./pull-binary-libs.sh

ant $scalaArgs build-opt &&
ant $scalaArgs nightly &&
for target in $extra_ant_targets; do ant $target ; done
# [[ -n "$BUILD_DOCSCOMP" ]] && ant docscomp