Revert "Merge branch 'master' into 'master'"
This reverts merge request !1
This commit is contained in:
parent
82554947db
commit
b8338339aa
@ -1,51 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo "Testi project buildi"
|
||||
|
||||
make clean && make
|
||||
|
||||
if [ $? -ne 0 ] ; then
|
||||
echo "Build ei 6nnestunud!"
|
||||
exit 1
|
||||
else
|
||||
echo "Build korras!"
|
||||
fi
|
||||
|
||||
|
||||
echo "Format code"
|
||||
make format
|
||||
|
||||
# Test if there are changed files that are not commited
|
||||
|
||||
if [ -n "$(git status --porcelain)" ] ; then
|
||||
echo "Uncommited files detected"
|
||||
git status
|
||||
exit 1
|
||||
else
|
||||
echo "OK"
|
||||
fi
|
||||
|
||||
|
||||
echo "Hetke tagid selles projektis"
|
||||
git tag
|
||||
echo -n "Are the required tags added? (Y/n)"
|
||||
read ANSWER
|
||||
if [ "$ANSWER" == "n" ]; then
|
||||
echo "Palun lisa vajalikud tagid"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
echo "Pakime projekti"
|
||||
|
||||
make clean && make
|
||||
|
||||
TEMP_DIR=$(mktemp -d)
|
||||
cp bin/atmega2560-user-code.ihx $TEMP_DIR
|
||||
make clean
|
||||
git archive --format=tar.gz -o $TEMP_DIR/$(git describe --abbrev=6 --dirty --always --tags --long).tar.gz HEAD
|
||||
mv $TEMP_DIR/* bin/
|
||||
rm -rf $TEMP_DIR
|
||||
|
||||
echo "Projekti pakendamine 6nnestus"
|
||||
exit 0
|
Loading…
Reference in New Issue
Block a user