image: python:2.7-stretch stages: - test - build - production firmware: stage: build image: python:2.7-stretch cache: - .pioenvs/build 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 cache: - .pioenvs/build script: - mkdir release - mv .pioenvs/build/firmware.bin release - mv .pioenvs/build/spiffs.bin release artifacts: paths: - release