da13409e9e
Copy and pasted from https://docs.platformio.org/en/latest/integration/ci/gitlab.html with a few small changes.
20 lines
308 B
YAML
20 lines
308 B
YAML
image: python:3.9
|
|
|
|
variables:
|
|
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.pip-cache"
|
|
PLATFORMIO_CACHE_DIR: "$CI_PROJECT_DIR/.platformio-cache"
|
|
|
|
cache:
|
|
paths:
|
|
- .pip-cache/
|
|
- .platformio-cache/
|
|
|
|
stages:
|
|
- build
|
|
|
|
before_script:
|
|
- "pip install -U platformio"
|
|
|
|
build_all:
|
|
stage: build
|
|
script: "pio run" |