Skip to content

Commit 43f546e

Browse files
committed
Update CI config examples for GitLab
Resolves #377
1 parent f445740 commit 43f546e

File tree

1 file changed

+21
-6
lines changed

1 file changed

+21
-6
lines changed

integration/ci/gitlab.rst

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,15 @@ This variant is default choice for native PlatformIO projects:
4848
4949
image: python:3.11
5050
51+
# Change cache directories to be inside the project directory since GitLab can only cache local items.
52+
variables:
53+
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
54+
PLATFORMIO_CACHE_DIR: "$CI_PROJECT_DIR/.cache/platformio"
55+
5156
cache:
5257
paths:
53-
- ~/.cache/pip
54-
- ~/.platformio/.cache
58+
- .cache/pip
59+
- .cache/platformio
5560
5661
stages:
5762
- test
@@ -75,10 +80,15 @@ and boards from command line interface:
7580
7681
image: python:3.11
7782
83+
# Change cache directories to be inside the project directory since GitLab can only cache local items.
84+
variables:
85+
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
86+
PLATFORMIO_CACHE_DIR: "$CI_PROJECT_DIR/.cache/platformio"
87+
7888
cache:
7989
paths:
80-
- ~/.cache/pip
81-
- ~/.platformio/.cache
90+
- .cache/pip
91+
- .cache/platformio
8292
8393
stages:
8494
- test
@@ -102,10 +112,15 @@ Examples
102112
103113
image: python:3.11
104114
115+
# Change cache directories to be inside the project directory since GitLab can only cache local items.
116+
variables:
117+
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
118+
PLATFORMIO_CACHE_DIR: "$CI_PROJECT_DIR/.cache/platformio"
119+
105120
cache:
106121
paths:
107-
- ~/.cache/pip
108-
- ~/.platformio/.cache
122+
- .cache/pip
123+
- .cache/platformio
109124
110125
stages:
111126
- test

0 commit comments

Comments
 (0)