mirror of
https://gitlab.com/zwirbel/illucat.git
synced 2025-12-15 01:42:22 +01:00
ci
This commit is contained in:
@@ -5,12 +5,14 @@ stages:
|
||||
- build
|
||||
- production
|
||||
|
||||
cache:
|
||||
key: ILLUCAT_CACHE
|
||||
paths:
|
||||
- .cache/
|
||||
|
||||
firmware:
|
||||
stage: build
|
||||
image: python:2.7-stretch
|
||||
cache:
|
||||
- .pioenvs/build
|
||||
before_script:
|
||||
- pip install -U platformio
|
||||
script:
|
||||
@@ -18,15 +20,14 @@ firmware:
|
||||
- pio run -t clean
|
||||
- pio run
|
||||
- pio run -t buildfs
|
||||
- mv .pioenvs/build/*.bin .cache
|
||||
|
||||
release:
|
||||
stage: production
|
||||
cache:
|
||||
- .pioenvs/build
|
||||
script:
|
||||
- mkdir release
|
||||
- mv .pioenvs/build/firmware.bin release
|
||||
- mv .pioenvs/build/spiffs.bin release
|
||||
- mv .cache/firmware.bin release
|
||||
- mv .cache/spiffs.bin release
|
||||
artifacts:
|
||||
paths:
|
||||
- release
|
||||
|
||||
Reference in New Issue
Block a user