[CI] Enable test env removing during the publish process
This commit is contained in:
1 parent
eef8c5048d
commit
046a251b0c
1 file changed
+2
-5
@@ -4,8 +4,6 @@ echo "renaming bin files with the board name"
|
|||||||
rename -v 's:/:-:g' .pio/build/*/*.bin
|
rename -v 's:/:-:g' .pio/build/*/*.bin
|
||||||
mkdir toDeploy
|
mkdir toDeploy
|
||||||
rename 's/.pio-build-//' .*.bin
|
rename 's/.pio-build-//' .*.bin
|
||||||
# don't publish binaries for *-all and *-test env
|
|
||||||
rm *-all.bin *-test.bin
|
|
||||||
(
|
(
|
||||||
cd .pio/libdeps
|
cd .pio/libdeps
|
||||||
echo "replace space by _ in folder names"
|
echo "replace space by _ in folder names"
|
||||||
@@ -15,12 +13,11 @@ rm *-all.bin *-test.bin
|
|||||||
do
|
do
|
||||||
zip -r "${i%/}-libraries.zip" "$i"
|
zip -r "${i%/}-libraries.zip" "$i"
|
||||||
done
|
done
|
||||||
# don't publish libraries for *-test env
|
|
||||||
rm *-test.zip
|
|
||||||
ls -lA
|
ls -lA
|
||||||
mv *.zip ../../toDeploy
|
mv *.zip ../../toDeploy
|
||||||
)
|
)
|
||||||
|
# remove binaries for *-all*, *-test* env and only zip containing *-test*
|
||||||
|
rm -f *-all*.bin *-test*.bin *-test*.zip
|
||||||
echo "zipping code and licence"
|
echo "zipping code and licence"
|
||||||
zip -r OpenMQTTGateway_sources.zip main LICENSE.txt
|
zip -r OpenMQTTGateway_sources.zip main LICENSE.txt
|
||||||
mv *.zip toDeploy
|
mv *.zip toDeploy
|
||||||
|
|||||||
Reference in new issue
Block a user