You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
376 B
33 lines
376 B
#! /bin/bash
|
|
|
|
function usage
|
|
{
|
|
cat <<EOF
|
|
Usage: Gruppenprojekt Programmiermethoden und Werkzeuge
|
|
build
|
|
build the project
|
|
test
|
|
runs the unit tests
|
|
help
|
|
print help and exit
|
|
|
|
EOF
|
|
}
|
|
|
|
CMD=$1
|
|
shift
|
|
|
|
case $CMD in
|
|
"build" )
|
|
mvn clean install -DskipTests=true
|
|
;;
|
|
"test" )
|
|
mvn test
|
|
;;
|
|
"help" )
|
|
usage
|
|
;;
|
|
* )
|
|
usage
|
|
;;
|
|
esac
|