Skip to content

Commit d443de3

Browse files
authored
Merge pull request ARMmbed#14551 from 0xc0170/travis-update-focal
Travis: update to focal dist
2 parents 752eaed + 06a02c3 commit d443de3

File tree

1 file changed

+6
-70
lines changed

1 file changed

+6
-70
lines changed

.travis.yml

Lines changed: 6 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
language: sh
1818
os: linux
19-
dist: xenial
19+
dist: focal
2020

2121

2222
env:
@@ -37,6 +37,7 @@ addons:
3737
apt:
3838
packages:
3939
- ninja-build
40+
- libncursesw5
4041

4142
matrix:
4243
include:
@@ -216,10 +217,10 @@ matrix:
216217
### Python Tests ###
217218
- &pytools-vm
218219
stage: "Pytest"
219-
name: "tools-py27"
220-
env: NAME=tools-py2.7
220+
name: "tools-py35"
221+
env: NAME=tools-py3.5
221222
language: python
222-
python: 2.7
223+
python: 3.5
223224
install:
224225
# Install gcc
225226
- source_pkg gcc
@@ -246,11 +247,6 @@ matrix:
246247
- coverage run -a tools/project.py -S | sed -n '/^Total/p'
247248
- coverage html
248249

249-
- <<: *pytools-vm
250-
name: "tools-py35"
251-
env: NAME=tools-py3.5
252-
python: 3.5
253-
254250
- <<: *pytools-vm
255251
name: "tools-py36"
256252
env: NAME=tools-py3.6
@@ -261,68 +257,8 @@ matrix:
261257
env: NAME=tools-py3.7
262258
python: 3.7
263259

264-
265-
### Extended Tests ###
266260
- &extended-vm
267-
stage: "Extended"
268-
name: "littlefs"
269-
env: NAME=littlefs LITTLEFS=storage/filesystem/littlefs
270-
language: python
271-
python: 3.7
272-
install:
273-
# Install gcc
274-
- source_pkg gcc
275-
- arm-none-eabi-gcc --version
276-
# Install python modules
277-
- python -m pip install --upgrade pip==18.1
278-
- python -m pip install --upgrade setuptools==40.4.3
279-
- pip install -r requirements.txt
280-
- pip list --verbose
281-
# Install test-specific packages
282-
- source_pkg fuse
283-
- source_pkg libfuse-dev
284-
- fusermount --version
285-
before_script:
286-
# Setup and patch littlefs-fuse
287-
- git clone https://github.com/armmbed/littlefs-fuse littlefs_fuse
288-
- git -C littlefs_fuse checkout 3f1ed6e37799e49e3710830dc6abb926d5503cf2
289-
- echo '*' > littlefs_fuse/.mbedignore
290-
- rm -rf littlefs_fuse/littlefs/*
291-
- cp -r $(git ls-tree --name-only HEAD ${LITTLEFS}/littlefs/) littlefs_fuse/littlefs
292-
# Create file-backed disk
293-
- mkdir MOUNT
294-
- sudo chmod a+rw /dev/loop0
295-
- dd if=/dev/zero bs=512 count=2048 of=DISK
296-
- losetup /dev/loop0 DISK
297-
- CFLAGS="-Werror -Wno-format"
298-
script:
299-
# Run local littlefs tests
300-
- make -C${LITTLEFS}/littlefs test QUIET=1
301-
# Run local littlefs tests with set of variations
302-
- make -C${LITTLEFS}/littlefs test QUIET=1 CFLAGS+="-DLFS_READ_SIZE=64 -DLFS_PROG_SIZE=64"
303-
- make -C${LITTLEFS}/littlefs test QUIET=1 CFLAGS+="-DLFS_READ_SIZE=1 -DLFS_PROG_SIZE=1"
304-
- make -C${LITTLEFS}/littlefs test QUIET=1 CFLAGS+="-DLFS_READ_SIZE=512 -DLFS_PROG_SIZE=512"
305-
- make -C${LITTLEFS}/littlefs test QUIET=1 CFLAGS+="-DLFS_BLOCK_COUNT=1023 -DLFS_LOOKAHEAD=2048"
306-
- make -C${LITTLEFS}/littlefs clean test QUIET=1 CFLAGS+="-DLFS_NO_INTRINSICS"
307-
# Self-hosting littlefs fuzz test with littlefs-fuse
308-
- make -Clittlefs_fuse
309-
- littlefs_fuse/lfs --format /dev/loop0
310-
- littlefs_fuse/lfs /dev/loop0 MOUNT
311-
- ls MOUNT
312-
- mkdir MOUNT/littlefs
313-
- cp -r $(git ls-tree --name-only HEAD ${LITTLEFS}/littlefs/) MOUNT/littlefs
314-
- ls MOUNT/littlefs
315-
- CFLAGS="-Wno-format" make -CMOUNT/littlefs -B test_dirs test_files QUIET=1
316-
# Compile and find the code size with smallest configuration
317-
- cd ${TRAVIS_BUILD_DIR}/${LITTLEFS}/littlefs
318-
- make clean size
319-
CC='arm-none-eabi-gcc -mthumb'
320-
OBJ="$(ls lfs*.o | tr '\n' ' ')"
321-
CFLAGS+="-DLFS_NO_ASSERT -DLFS_NO_DEBUG -DLFS_NO_WARN -DLFS_NO_ERROR"
322-
| tee sizes
323-
- ccache -s
324-
- <<: extended-pinvalidate
325-
stage: "Extended"
261+
stage: "Pin validation"
326262
name: "pinvalidate"
327263
env: NAME=pinvalidate
328264
language: python

0 commit comments

Comments
 (0)