Add example .gitlab-ci.yml from pio docs

Copy and pasted from
https://docs.platformio.org/en/latest/integration/ci/gitlab.html
with a few small changes.
This commit is contained in:
Dawson Coleman 2021-09-13 16:46:11 -05:00
parent bfbe554569
commit da13409e9e

20
.gitlab-ci.yml Normal file
View File

@ -0,0 +1,20 @@
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"