summaryrefslogtreecommitdiff
path: root/scripts/jobs/validate/test
blob: 39fafebaef4404865b8f35af93c4a2b89e69d8d7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/bash -e -v -x

baseDir=${WORKSPACE-`pwd`}
scriptsDir="$baseDir/scripts"
. $scriptsDir/common

generateRepositoriesConfig $prRepoUrl
SBT="$SBT_CMD -Dsbt.override.build.repos=true -Dsbt.repository.config=$sbtRepositoryConfig"

case $prDryRun in

  yep)
    echo "DRY RUN"
    ;;

  *)

    # build quick using STARR built upstream, as specified by scalaVersion
    # (in that sense it's locker, since it was built with starr by that upstream job);
    # and run JUnit tests, ScalaCheck tests, partest, OSGi tests, MiMa and scaladoc
    $SBT \
       -Dstarr.version=$scalaVersion \
       --warn \
       "setupValidateTest $prRepoUrl" \
       $testExtraArgs \
       testAll

    ;;

esac