java-tutorials/test/run.sh

37 lines
374 B
Bash
Raw Normal View History

2013-08-07 17:08:12 -04:00
#!/bin/sh
cd $(dirname $0)
2013-08-07 23:17:45 -04:00
2013-08-07 17:08:12 -04:00
cd ../complete
2013-08-07 23:17:45 -04:00
2013-08-07 17:08:12 -04:00
mvn clean package
2013-08-07 23:17:45 -04:00
ret=$?
if [ $ret -ne 0 ]; then
2013-08-13 16:24:25 -04:00
exit $ret
2013-08-07 23:17:45 -04:00
fi
2013-08-07 17:08:12 -04:00
rm -rf target
2013-08-07 23:17:45 -04:00
2013-08-07 17:08:12 -04:00
./gradlew build
2013-08-07 23:17:45 -04:00
ret=$?
if [ $ret -ne 0 ]; then
2013-08-13 16:24:25 -04:00
exit $ret
2013-08-07 23:17:45 -04:00
fi
2013-08-07 17:08:12 -04:00
rm -rf build
2013-08-07 23:17:45 -04:00
2013-08-07 17:08:12 -04:00
cd ../initial
2013-08-07 23:17:45 -04:00
2013-08-07 17:08:12 -04:00
mvn clean package
2013-08-07 23:17:45 -04:00
ret=$?
if [ $ret -ne 0 ]; then
2013-08-13 16:24:25 -04:00
exit $ret
2013-08-07 23:17:45 -04:00
fi
2013-08-07 17:08:12 -04:00
rm -rf target
2013-08-07 23:17:45 -04:00
2013-08-07 17:08:12 -04:00
./gradlew build
2013-08-07 23:17:45 -04:00
ret=$?
if [ $ret -ne 0 ]; then
2013-08-13 16:24:25 -04:00
exit $ret
2013-08-07 23:17:45 -04:00
fi
rm -rf build
exit