automate libraries deployment for arduino IDE (#488)
make the use of arduino IDE easier by automating the libraries deposit into github releases
This commit is contained in:
1 parent
12bd11bbe1
commit
c0204de40f
2 files changed
+16
-8
No files matched your search
+2
-8
@@ -36,15 +36,9 @@ matrix:
|
|||||||
- platformio update
|
- platformio update
|
||||||
- rm /home/travis/build/1technophile/OpenMQTTGateway/main/User_config.h
|
- rm /home/travis/build/1technophile/OpenMQTTGateway/main/User_config.h
|
||||||
- cp /home/travis/build/1technophile/OpenMQTTGateway/test/Test_config.h /home/travis/build/1technophile/OpenMQTTGateway/main//User_config.h
|
- cp /home/travis/build/1technophile/OpenMQTTGateway/test/Test_config.h /home/travis/build/1technophile/OpenMQTTGateway/main//User_config.h
|
||||||
script:
|
script:
|
||||||
- platformio run
|
- platformio run
|
||||||
- rename -v 's:/:-:g' .pio/build/*/*.bin
|
- bash scripts/prepare_deploy.sh
|
||||||
- mkdir toDeploy
|
|
||||||
- rename 's/.pio-build-//' .*.bin
|
|
||||||
- mv *.bin toDeploy
|
|
||||||
- cd toDeploy
|
|
||||||
- ls -la
|
|
||||||
- cd ..
|
|
||||||
before_deploy: ls -a
|
before_deploy: ls -a
|
||||||
deploy:
|
deploy:
|
||||||
on:
|
on:
|
||||||
|
|||||||
@@ -0,0 +1,14 @@
|
|||||||
|
echo "renaming bin files with the board name"
|
||||||
|
rename -v 's:/:-:g' .pio/build/*/*.bin
|
||||||
|
mkdir toDeploy
|
||||||
|
rename 's/.pio-build-//' .*.bin
|
||||||
|
cd .pio/libdeps
|
||||||
|
echo "zipping libraries per board"
|
||||||
|
for i in */; do zip -r "${i%/}-libraries.zip" "$i"; done
|
||||||
|
ls -la
|
||||||
|
mv *.zip ../../toDeploy
|
||||||
|
cd ../..
|
||||||
|
mv *.bin toDeploy
|
||||||
|
cd toDeploy
|
||||||
|
ls -la
|
||||||
|
cd ..
|
||||||
Reference in new issue
Block a user