#!/usr/bin/env bash

# Load common
source ${PWD}/scripts/common.sh

# Constants
if [[ $BASE_PROJECT == *".git"* ]]; then
  BASE_PROJECT=$(dirname "$BASE_PROJECT")
fi
cd ${BASE_PROJECT}

# Validate project
./sbt ";compile;test;scalastyle"
if [ $? -ne 0 ]
then
  error "The project isn't valid"
else
  info "The project is valid"
fi

#!/usr/bin/env bash

# Load common
source ${PWD}/scripts/common.sh

# Constants
if [[ $BASE_PROJECT == *".git"* ]]; then
  BASE_PROJECT=$(dirname "$BASE_PROJECT")
fi
cd ${BASE_PROJECT}

# Validate project
./sbt ";compile;test;scalastyle"
if [ $? -ne 0 ]
then
  error "The project isn't valid"
  exit 1
else
  info "The project is valid"
fi

Halt commit if we have an error
[Fixed] Halt commit if we have an error

Signed-off-by: amannocci <460865f536eadefb7a9a9ce677e40da609b12400@gmail.com>
