File tree Expand file tree Collapse file tree 1 file changed +21
-6
lines changed Expand file tree Collapse file tree 1 file changed +21
-6
lines changed Original file line number Diff line number Diff line change @@ -48,10 +48,15 @@ This variant is default choice for native PlatformIO projects:
48
48
49
49
image : python:3.11
50
50
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
+
51
56
cache :
52
57
paths :
53
- - ~/ .cache/pip
54
- - ~/.platformio/. cache
58
+ - .cache/pip
59
+ - . cache/platformio
55
60
56
61
stages :
57
62
- test
@@ -75,10 +80,15 @@ and boards from command line interface:
75
80
76
81
image : python:3.11
77
82
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
+
78
88
cache :
79
89
paths :
80
- - ~/ .cache/pip
81
- - ~/.platformio/. cache
90
+ - .cache/pip
91
+ - . cache/platformio
82
92
83
93
stages :
84
94
- test
@@ -102,10 +112,15 @@ Examples
102
112
103
113
image : python:3.11
104
114
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
+
105
120
cache :
106
121
paths :
107
- - ~/ .cache/pip
108
- - ~/.platformio/. cache
122
+ - .cache/pip
123
+ - . cache/platformio
109
124
110
125
stages :
111
126
- test
You can’t perform that action at this time.
0 commit comments