build script

This commit is contained in:
Wolfgang Hottgenroth 2019-11-18 18:21:39 +01:00
parent 96441d5547
commit 49afd6d818
Signed by: wn
GPG Key ID: 6C1E5E531E0D5D7F
3 changed files with 20 additions and 3 deletions

6
.gitignore vendored
View File

@ -1 +1,7 @@
/Release/
libraries/includes/configuration.cpp
libraries/includes/configuration.h
sketch.esp8266.esp8266.nodemcu.bin
sketch.esp8266.esp8266.nodemcu.elf
sketch/sketch.esp8266.esp8266.nodemcu.bin
sketch/sketch.esp8266.esp8266.nodemcu.elf

View File

@ -18,9 +18,7 @@ build:
except:
- tags
script:
- pushd $CI_PROJECT_DIR/libraries/esp8266boilerplate/ConfigGenerator && ./configGen.sh && popd
- env ARDUINO_SKETCHBOOK_DIR=$CI_PROJECT_DIR arduino-cli compile --fqbn=esp8266:esp8266:nodemcu $CI_PROJECT_DIR/sketch
- cp sketch/sketch.esp8266.esp8266.nodemcu.* .
- ./build.sh $CI_PROJECT_DIR
release:

13
build.sh Executable file
View File

@ -0,0 +1,13 @@
#!/bin/bash
if [ "$1" != "" ]; then
PROJECT_DIR=$1
else
PROJECT_DIR=$PWD
fi
pushd $PROJECT_DIR/libraries/esp8266boilerplate/ConfigGenerator && ./configGen.sh && popd
env ARDUINO_SKETCHBOOK_DIR=$PROJECT_DIR arduino-cli compile --fqbn=esp8266:esp8266:nodemcu $PROJECT_DIR/sketch
cp sketch/sketch.esp8266.esp8266.nodemcu.* .