ci script and adjust for new project

This commit is contained in:
2020-07-26 22:58:48 +02:00
parent 7b0c2005b6
commit 0c095c80ac
3 changed files with 53 additions and 202 deletions

44
.gitlab-ci.yml Normal file
View File

@ -0,0 +1,44 @@
stages:
- build
- release
build:
stage: build
image: registry.hottis.de/dockerized/build-env-arduino:latest
tags:
- hottis
- linux
- docker
variables:
GIT_SUBMODULE_STRATEGY: recursive
artifacts:
name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
paths:
- sketch.esp8266.esp8266.nodemcu.bin
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.* .
release:
stage: release
image: registry.hottis.de/dockerized/base-build-env
tags:
- hottis
- linux
- docker
dependencies:
- build
only:
refs:
- release
script:
- gitlabreleaseuploader.py -p $PRIVATE_TOKEN
-i $CI_PROJECT_ID -u $CI_PROJECT_URL
-f sketch.esp8266.esp8266.nodemcu.bin
-F releaseInfo.json -T $CI_COMMIT_REF_NAME
-I $CI_SERVER_URL