rgbled/.gitlab-ci.yml

43 lines
1.4 KiB
YAML
Raw Normal View History

2019-04-30 13:53:11 +02:00
stages:
- build
2019-04-30 15:38:41 +02:00
- release
2019-04-30 13:53:11 +02:00
build:
stage: build
image: registry.gitlab.com/wolutator/build-env-arduino:latest
tags:
- hottis
- linux
- docker
2019-04-30 14:00:39 +02:00
variables:
GIT_SUBMODULE_STRATEGY: recursive
2019-04-30 14:59:32 +02:00
artifacts:
name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
paths:
- sketch.esp8266.esp8266.nodemcu.bin
- sketch.esp8266.esp8266.nodemcu.elf
2019-04-30 13:54:56 +02:00
script:
2019-05-17 17:54:59 +02:00
- pushd $CI_PROJECT_DIR/libraries/esp8266boilerplate/ConfigGenerator && ./configGen.sh && popd
2019-04-30 14:40:01 +02:00
- env ARDUINO_SKETCHBOOK_DIR=$CI_PROJECT_DIR arduino-cli compile --fqbn=esp8266:esp8266:nodemcu $CI_PROJECT_DIR/sketch
2019-04-30 15:02:52 +02:00
- cp sketch/sketch.esp8266.esp8266.nodemcu.* .
2019-04-30 15:01:19 +02:00
2019-04-30 13:53:11 +02:00
2019-04-30 15:38:41 +02:00
release:
stage: release
image: registry.gitlab.com/wolutator/base-build-env
tags:
- hottis
- linux
- docker
dependencies:
- build
2019-05-17 18:04:59 +02:00
# variables:
# GIT_STRATEGY: none
2019-04-30 15:38:41 +02:00
script:
2019-05-17 18:03:20 +02:00
- git tag X
- git push --tags
- gitlabreleaseuploader.py -p $PRIVATE_TOKEN -i 10877064 -u https://gitlab.com/wolutator/rgbled
-f sketch.esp8266.esp8266.nodemcu.elf -n NewRelease -t X -d "blablabla"
2019-04-30 13:53:11 +02:00