add prod stage

This commit is contained in:
2018-09-24 13:42:36 +02:00
parent 35607c1ac5
commit c984a4a63f

View File

@@ -3,18 +3,22 @@ image: python:2.7-stretch
stages:
- test
- build
- production
before_script:
- "pip install -U platformio"
firmware-build:
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
artifacts:
paths:
- .pioenvs/build/firmware.bin