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:
parent
bfbe554569
commit
da13409e9e
20
.gitlab-ci.yml
Normal file
20
.gitlab-ci.yml
Normal 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"
|
Loading…
Reference in New Issue
Block a user