mirror of https://github.com/icedland/iced.git
49 lines
825 B
Plaintext
49 lines
825 B
Plaintext
![]() |
#!/bin/sh
|
||
|
set -e
|
||
|
|
||
|
root_dir=$(dirname "$0")
|
||
|
root_dir=$(cd "$root_dir/.." && pwd)
|
||
|
if [ ! -f "$root_dir/LICENSE.txt" ]; then
|
||
|
echo "Couldn't find the root dir"
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
full_check=y
|
||
|
test_code=y
|
||
|
|
||
|
new_func() {
|
||
|
echo
|
||
|
echo "****************************************************************"
|
||
|
echo "$1"
|
||
|
echo "****************************************************************"
|
||
|
echo
|
||
|
}
|
||
|
|
||
|
build_test() {
|
||
|
new_func "Build, test"
|
||
|
|
||
|
mvn clean package
|
||
|
}
|
||
|
|
||
|
while [ "$#" -gt 0 ]; do
|
||
|
case $1 in
|
||
|
--quick-check) full_check=n ;;
|
||
|
--no-test) test_code=n ;;
|
||
|
*) echo "Unknown arg: $1"; exit 1 ;;
|
||
|
esac
|
||
|
shift
|
||
|
done
|
||
|
|
||
|
echo
|
||
|
echo "=================================================="
|
||
|
echo "Java build"
|
||
|
echo "=================================================="
|
||
|
echo
|
||
|
|
||
|
echo "java version"
|
||
|
java -showversion
|
||
|
echo "maven version"
|
||
|
mvn --version
|
||
|
|
||
|
build_test
|