mirror of
https://gitlab.com/zwirbel/illucat.git
synced 2025-12-15 01:42:22 +01:00
add prod stage
This commit is contained in:
@@ -3,18 +3,22 @@ image: python:2.7-stretch
|
|||||||
stages:
|
stages:
|
||||||
- test
|
- test
|
||||||
- build
|
- build
|
||||||
|
- production
|
||||||
|
|
||||||
before_script:
|
|
||||||
- "pip install -U platformio"
|
|
||||||
|
|
||||||
firmware-build:
|
firmware:
|
||||||
stage: build
|
stage: build
|
||||||
image: python:2.7-stretch
|
image: python:2.7-stretch
|
||||||
|
before_script:
|
||||||
|
- "pip install -U platformio"
|
||||||
script:
|
script:
|
||||||
- mv data/example.config.json data/config.json
|
- mv data/example.config.json data/config.json
|
||||||
- pio run -t clean
|
- pio run -t clean
|
||||||
- pio run
|
- pio run
|
||||||
- pio run -t buildfs
|
- pio run -t buildfs
|
||||||
|
|
||||||
|
release:
|
||||||
|
stage: production
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- .pioenvs/build/firmware.bin
|
- .pioenvs/build/firmware.bin
|
||||||
|
|||||||
Reference in New Issue
Block a user