Fix up deliver script

This commit is contained in:
peteraa 2019-09-09 15:56:18 +02:00
parent ae995a7b55
commit 559a5c8360
3 changed files with 16 additions and 6 deletions

View file

@ -3,23 +3,25 @@
read -p "Enter your student username (the one you use on badboard): " username
echo "Cleaning your project"
./sbt.sh clean
# ./sbt.sh clean
echo "Creating archive"
mkdir wrap
mkdir wrap/project
cp -r src ./wrap/
cp build.sbt ./wrap
cp project/Dependencies.scala ./wrap/project/Dependencies.scala
cp project/build.properties ./wrap/project/build.properties
cp sbt.sh ./wrap
tar czfv $username.gz wrap
(cd ./wrap/; tar czfv $username.gz .)
mv ./wrap/$username.gz .
rm -rf ./wrap
echo "Unwrapping and testing your wrapped package"
mkdir wrapTest
tar -C ./wrapTest -xvf $username.gz
./wrapTest/wrap/sbt.sh test
./wrapTest/sbt.sh test
rm -rf ./wrapTest
echo "If the test output looked good then you're good to go!"