@@ -19,36 +19,28 @@ os: linux
19
19
dist : xenial
20
20
21
21
22
+ env :
23
+ global :
24
+ - deps_url="https://mbed-os-ci.s3-eu-west-1.amazonaws.com/jenkins-ci/deps"
25
+ - deps_dir="${HOME}/.cache/deps"
26
+
27
+ cache :
28
+
22
29
cache :
23
30
pip : true
24
31
directories :
25
- - $HOME/.cache/apt
26
- - $HOME/gcc-arm-none-eabi-6-2017-q2-update
32
+ - $HOME/.cache/deps
27
33
28
34
29
35
before_install :
30
36
- source tools/test/travis-ci/functions.sh
31
37
- set_status "pending" "Test started."
32
38
33
- # Make sure pipefail
34
- # - set -o pipefail
35
- # Setup apt to cache
36
- # - mkdir -p $HOME/.cache/apt/partial
37
- # - sudo rm -rf /var/cache/apt/archives
38
- # - sudo ln -s $HOME/.cache/apt /var/cache/apt/archives
39
- # Setup ppa to make sure arm-none-eabi-gcc is correct version
40
- # - sudo add-apt-repository -y ppa:team-gcc-arm-embedded/ppa
41
- # - sudo add-apt-repository -y ppa:deadsnakes/ppa
42
- # workaround for https://travis-ci.community/t/then-sudo-apt-get-update-failed-public-key-is-not-available-no-pubkey-6b05f25d762e3157-in-ubuntu-xenial/1728
43
- # - sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 762E3157
44
- # Loop until update succeeds (timeouts can occur)
45
- # - travis_retry $(! sudo apt-get update 2>&1 |grep Failed)
46
-
47
39
after_success :
48
40
- set_status "success" "Success!"
49
41
50
42
after_failure :
51
- -set_status "failure" "Test failed."
43
+ - set_status "failure" "Test failed."
52
44
53
45
54
46
matrix :
@@ -83,19 +75,6 @@ matrix:
83
75
# ## Docs Tests ###
84
76
- &docs-vm
85
77
stage : " Docs"
86
- name : " spellcheck"
87
- env : NAME=doxy-spellcheck
88
- install :
89
- - sudo apt-get install aspell
90
- script :
91
- # Run local testing on header file doxy
92
- - ./tools/test/travis-ci/doxy-spellchecker/spell.sh drivers
93
- - ./tools/test/travis-ci/doxy-spellchecker/spell.sh platform
94
- - ./tools/test/travis-ci/doxy-spellchecker/spell.sh events
95
- - ./tools/test/travis-ci/doxy-spellchecker/spell.sh rtos
96
- - ./tools/test/travis-ci/doxy-spellchecker/spell.sh features/netsocket
97
-
98
- - << : *docs-vm
99
78
name : " astyle"
100
79
env : NAME=astyle
101
80
install :
@@ -117,16 +96,23 @@ matrix:
117
96
| ( grep -v -f .astyleignore || true ) \
118
97
| while read file; do astyle -n --options=.astylerc "${file}"; done
119
98
- git diff --exit-code --diff-filter=d --color
99
+
100
+ - << : *docs-vm
101
+ name : " spellcheck"
102
+ env : NAME=doxy-spellcheck
103
+ install :
104
+ - source_pkg aspell
105
+ script :
106
+ - ./tools/test/travis-ci/doxy-spellchecker/spell.sh drivers
107
+ - ./tools/test/travis-ci/doxy-spellchecker/spell.sh platform
108
+ - ./tools/test/travis-ci/doxy-spellchecker/spell.sh events
109
+ - ./tools/test/travis-ci/doxy-spellchecker/spell.sh rtos
110
+ - ./tools/test/travis-ci/doxy-spellchecker/spell.sh features/netsocket
120
111
121
112
- << : *docs-vm
122
113
name : " doxygen"
123
114
env : NAME=docs
124
115
install :
125
- # Install dependencies
126
- - sudo apt-get install doxygen
127
- # Print versions we use
128
- - doxygen --version
129
- before_script :
130
116
# Build doxygen
131
117
- >
132
118
(git clone --depth=1 --single-branch --branch Release_1_8_14 https://github.com/doxygen/doxygen;
@@ -165,12 +151,13 @@ matrix:
165
151
stage : " Pytest"
166
152
name : " tools-py27"
167
153
env : NAME=tools-py2.7
154
+ language : python
168
155
python : 2.7
169
156
install :
170
- # Install dependencies
171
- - sudo apt-get install gcc-arm-embedded
157
+ # Install gcc
158
+ - source_pkg gcc
172
159
- arm-none-eabi-gcc --version
173
- # Add additional dependencies specific for testing
160
+ # Install additional python modules
174
161
- python --version
175
162
- |-
176
163
tr -d ' ' >> requirements.txt <<< "
@@ -181,7 +168,8 @@ matrix:
181
168
coverage>=4.5,<5
182
169
coveralls>=1.5,<2
183
170
"
184
- # ... and install.
171
+ - python -m pip install --upgrade pip==18.1
172
+ - python -m pip install --upgrade setuptools==40.4.3
185
173
- pip install -r requirements.txt
186
174
- pip list --verbose
187
175
script :
@@ -190,8 +178,6 @@ matrix:
190
178
- python tools/test/pylint.py
191
179
- coverage run -a tools/project.py -S | sed -n '/^Total/p'
192
180
- coverage html
193
- after_success :
194
- # Coverage for tools
195
181
- coveralls
196
182
197
183
- << : *pytools-vm
@@ -217,21 +203,22 @@ matrix:
217
203
env : NAME=psa-autogen
218
204
language : python
219
205
python : 3.7
206
+ install :
207
+ # Install gcc
208
+ - source_pkg gcc
209
+ - arm-none-eabi-gcc --version
210
+ # Install python modules
211
+ - python -m pip install --upgrade pip==18.1
212
+ - python -m pip install --upgrade setuptools==40.4.3
213
+ - pip install -r requirements.txt
214
+ - pip list --verbose
220
215
script :
221
216
- python tools/psa/generate_partition_code.py
222
217
- git diff --exit-code
223
218
224
219
- << : *extended-vm
225
220
name : " events"
226
221
env : NAME=events EVENTS=events
227
- install :
228
- # Install dependencies
229
- - sudo apt-get install gcc-arm-embedded
230
- - pip install -r requirements.txt
231
- # Print versions we use
232
- - arm-none-eabi-gcc --version
233
- - gcc --version
234
- - python --version
235
222
script :
236
223
# Check that example compiles
237
224
- sed -n '/``` cpp/,/```/{/```$/Q;/```/d;p;}' $EVENTS/README.md > main.cpp
@@ -264,13 +251,17 @@ matrix:
264
251
name : " littlefs"
265
252
env : NAME=littlefs LITTLEFS=features/storage/filesystem/littlefs
266
253
install :
267
- # Install dependencies
268
- - sudo apt-get install gcc-arm-embedded fuse libfuse-dev
269
- - pip install -r requirements.txt
270
- # Print versions
254
+ # Install gcc
255
+ - source_pkg gcc
271
256
- arm-none-eabi-gcc --version
272
- - gcc --version
273
- - python --version
257
+ # Install python modules
258
+ - python -m pip install --upgrade pip==18.1
259
+ - python -m pip install --upgrade setuptools==40.4.3
260
+ - pip install -r requirements.txt
261
+ - pip list --verbose
262
+ # Install test-specific packages
263
+ - source_pkg fuse
264
+ - source_pkg libfuse-dev
274
265
- fusermount --version
275
266
before_script :
276
267
# Setup and patch littlefs-fuse
0 commit comments