mirror of
https://gitlab.com/zwirbel/illucat.git
synced 2025-12-15 01:42:22 +01:00
36 lines
584 B
YAML
36 lines
584 B
YAML
image: python:2.7-stretch
|
|
|
|
stages:
|
|
- test
|
|
- build
|
|
- production
|
|
|
|
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: production
|
|
tags:
|
|
only:
|
|
- release/*
|
|
script:
|
|
- mkdir release
|
|
- mv .pioenvs/build/firmware.bin release
|
|
- mv .pioenvs/build/spiffs.bin release
|
|
artifacts:
|
|
paths:
|
|
- release
|