* fix: unable to delete user account. Issue #402 * chore: fix checkstyle and import orders * ci: fix sonar project key * chore: improve test condition and test cases
35 lines
921 B
Bash
Executable File
35 lines
921 B
Bash
Executable File
#!/bin/bash
|
|
# Server - Back-end
|
|
|
|
if [ -z "$CHECK" ]; then
|
|
./mvnw -ntp \
|
|
spring-boot:run \
|
|
-Dspring-boot.run.jvmArguments="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=*:5005" \
|
|
-Dmaven.plugin.validation=VERBOSE
|
|
else
|
|
echo "Running checks..."
|
|
echo "1/3 - Check Style started..."
|
|
./mvnw --no-transfer-progress checkstyle:check -Dcheckstyle.skip=false
|
|
if [ $? -eq 1 ]; then
|
|
echo "Issues when running Check Style. Please review.."
|
|
exit 1
|
|
fi
|
|
|
|
echo "2/3 - Build started..."
|
|
./mvnw --no-transfer-progress clean compile -DskipTests
|
|
if [ $? -eq 1 ]; then
|
|
echo "Issues when running build. Please review.."
|
|
exit 1
|
|
fi
|
|
|
|
echo "3/3 - Tests started..."
|
|
./mvnw --no-transfer-progress clean verify -P tests --file pom.xml
|
|
if [ $? -eq 1 ]; then
|
|
echo "Issues when running test. Please review.."
|
|
exit 1
|
|
fi
|
|
|
|
echo "You're good to go! Good job!"
|
|
exit 0
|
|
fi
|