ci script added
This commit is contained in:
41
.gitlab-ci.yml
Normal file
41
.gitlab-ci.yml
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
stages:
|
||||||
|
- build
|
||||||
|
- release
|
||||||
|
|
||||||
|
build:
|
||||||
|
stage: build
|
||||||
|
image: registry.gitlab.com/wolutator/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.gitlab.com/wolutator/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
|
||||||
|
|
8
releaseInfo.json
Normal file
8
releaseInfo.json
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
"releaseTag": "v0.0.1",
|
||||||
|
"createReleaseTag": "true",
|
||||||
|
"releaseName": "initial",
|
||||||
|
"description": "initial automatic build"
|
||||||
|
}
|
||||||
|
|
||||||
|
|
Reference in New Issue
Block a user