mirror of
https://gitlab.com/zwirbel/illucat.git
synced 2025-12-15 17:58:20 +01:00
41 lines
822 B
YAML
41 lines
822 B
YAML
image: python:2.7-stretch
|
|
|
|
variables:
|
|
S3_BUCKET_NAME: "wirelos"
|
|
|
|
stages:
|
|
- build
|
|
- test
|
|
- release
|
|
|
|
cache:
|
|
key: ${CI_COMMIT_REF_SLUG}
|
|
paths:
|
|
- .pioenvs/
|
|
|
|
firmware:
|
|
stage: build
|
|
image: python:2.7-stretch
|
|
before_script:
|
|
- pip install -U platformio
|
|
script:
|
|
- mv data/example.config.json data/config.json
|
|
- pio run -t clean
|
|
- pio run
|
|
- pio run -t buildfs
|
|
|
|
release:
|
|
stage: release
|
|
only:
|
|
- /^release-.*$/
|
|
image: python:latest
|
|
script:
|
|
- pip install awscli
|
|
- mkdir ${CI_COMMIT_TAG}
|
|
- mv .pioenvs/build/firmware.bin ${CI_COMMIT_TAG}
|
|
- mv .pioenvs/build/spiffs.bin ${CI_COMMIT_TAG}
|
|
- aws s3 --endpoint-url=https://$DO_SPACE_ENDPOINT cp ./ s3://$S3_BUCKET_NAME/ --recursive --exclude "*" --include "*.bin"
|
|
artifacts:
|
|
paths:
|
|
- ${CI_COMMIT_TAG}
|