2022-06-22 07:09:05 +00:00
|
|
|
pipeline:
|
|
|
|
build:
|
2022-06-22 06:25:17 +00:00
|
|
|
image: gcc
|
|
|
|
commands:
|
|
|
|
- apt-get -y update
|
|
|
|
- apt-get -y install libusb-1.0
|
|
|
|
- make
|
|
|
|
|
2022-06-22 07:09:05 +00:00
|
|
|
check:
|
2022-06-22 06:25:17 +00:00
|
|
|
image: neszt/cppcheck-docker
|
|
|
|
commands:
|
|
|
|
- cppcheck *.c
|
|
|
|
|
2022-06-22 07:09:05 +00:00
|
|
|
docs:
|
2022-06-22 06:25:17 +00:00
|
|
|
image: corentinaltepe/doxygen
|
|
|
|
commands:
|
|
|
|
- doxygen
|
2022-06-22 07:57:17 +00:00
|
|
|
|
|
|
|
deploy:
|
|
|
|
image: debian
|
|
|
|
commands:
|
|
|
|
- zip -r ledcontroller-3bit-release.zip output/
|
|
|
|
- curl --user $PUBLISH_USERNAME:$PUBLISH_PASSWORD 69f9a205549e8f40411597e5eb896b369d1884ea --upload-file ledcontroller https://code.jcktrue.dk/api/packages/$PUBLISH_USERNAME/generic/ledcontroller/1.0.0/ledcontroller.bin
|
|
|
|
secrets: [ publish_username, publish_password ]
|
|
|
|
when:
|
|
|
|
event: tag
|