You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@bahir.apache.org by lresende <gi...@git.apache.org> on 2019/01/23 19:28:59 UTC

[GitHub] bahir pull request #76: [BAHIR-107] Upgrade to Scala 2.12 and Spark 2.4.0

Github user lresende commented on a diff in the pull request:

    https://github.com/apache/bahir/pull/76#discussion_r250337448
  
    --- Diff: dev/release-build.sh ---
    @@ -231,83 +229,92 @@ function checkout_code {
         git_hash=`git rev-parse --short HEAD`
         echo "Checked out Bahir git hash $git_hash"
     
    -    cd "$BASE_DIR" #return to base dir
    +    cd "$BASE_DIR" # return to base dir
     }
     
     if [[ "$RELEASE_PREPARE" == "true" ]]; then
         echo "Preparing release $RELEASE_VERSION"
    -    # Checkout code
    +    # checkout code
         checkout_code
         cd target/bahir
     
    -    # Build and prepare the release
    -    $MVN $PUBLISH_PROFILES release:clean release:prepare $DRY_RUN -Darguments="-Dgpg.passphrase=\"$GPG_PASSPHRASE\" -DskipTests" -DreleaseVersion="$RELEASE_VERSION" -DdevelopmentVersion="$DEVELOPMENT_VERSION" -Dtag="$RELEASE_TAG"
    +    # test with scala 2.11 and 2.12
    +    ./dev/change-scala-version.sh 2.11
    +    $MVN $PUBLISH_PROFILES clean test -Dscala-2.11 || exit 1
    +    ./dev/change-scala-version.sh 2.12
    +    $MVN $PUBLISH_PROFILES clean test || exit 1
    +
    +    # build and prepare the release
    +    $MVN $PUBLISH_PROFILES release:clean release:prepare $DRY_RUN \
    +        -DskipTests=true -Dgpg.passphrase="$GPG_PASSPHRASE" \
    +        -DreleaseVersion="$RELEASE_VERSION" -DdevelopmentVersion="$DEVELOPMENT_VERSION" -Dtag="$RELEASE_TAG"
     
    -    cd .. #exit bahir
    +    cd .. # exit bahir
     
         if [ -z "$DRY_RUN" ]; then
             cd "$BASE_DIR/target/bahir"
             git checkout $RELEASE_TAG
             git clean -d -f -x
     
    -        $MVN $PUBLISH_PROFILES clean install -DskiptTests -Darguments="-DskipTests"
    +        $MVN $PUBLISH_PROFILES clean install -DskipTests=true
     
    --- End diff --
    
    My understanding is that -DskiptTests does not require a value as described in [Maven docs](http://maven.apache.org/surefire/maven-surefire-plugin/examples/skipping-tests.html).
    
    Also, -arguments is required to pass arguments to internal plugins such as the release plugin.


---