This commit is contained in:
2018-09-24 14:01:16 +02:00
parent e2a4612029
commit bc6764b3c5

View File

@@ -5,12 +5,14 @@ stages:
- build - build
- production - production
cache:
key: ILLUCAT_CACHE
paths:
- .cache/
firmware: firmware:
stage: build stage: build
image: python:2.7-stretch image: python:2.7-stretch
cache:
- .pioenvs/build
before_script: before_script:
- pip install -U platformio - pip install -U platformio
script: script:
@@ -18,15 +20,14 @@ firmware:
- pio run -t clean - pio run -t clean
- pio run - pio run
- pio run -t buildfs - pio run -t buildfs
- mv .pioenvs/build/*.bin .cache
release: release:
stage: production stage: production
cache:
- .pioenvs/build
script: script:
- mkdir release - mkdir release
- mv .pioenvs/build/firmware.bin release - mv .cache/firmware.bin release
- mv .pioenvs/build/spiffs.bin release - mv .cache/spiffs.bin release
artifacts: artifacts:
paths: paths:
- release - release