build script
This commit is contained in:
parent
96441d5547
commit
49afd6d818
6
.gitignore
vendored
6
.gitignore
vendored
@ -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
|
||||
|
@ -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
13
build.sh
Executable 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.* .
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user