#!/bin/bash

set -euo pipefail

if [ "${COVERAGE:-false}" != false ]; then
    echo building with coverage on sonarcloud
    mvn test jacoco:report sonar:sonar
else
    echo building without coverage
    mvn test
fi
