-
Notifications
You must be signed in to change notification settings - Fork 3k
Travis: update to focal dist #14551
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Travis: update to focal dist #14551
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
5057bfd
Travis: update to 20.04
0xc0170 dfcbf0a
Travis: remove littlefs generic tests
0xc0170 e98b0e6
aspell: fix dependencies missing
0xc0170 4875136
fixup! aspell: fix dependencies missing
0xc0170 6919513
fixup! aspell: fix dependencies missing
0xc0170 75ad516
Travis: deprecate python 2.7
0xc0170 06a02c3
Travis: use addons to install libncursesw5
0xc0170 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,7 @@ | |
|
||
language: sh | ||
os: linux | ||
dist: xenial | ||
dist: focal | ||
|
||
|
||
env: | ||
|
@@ -37,6 +37,7 @@ addons: | |
apt: | ||
packages: | ||
- ninja-build | ||
- libncursesw5 | ||
|
||
matrix: | ||
include: | ||
|
@@ -216,10 +217,10 @@ matrix: | |
### Python Tests ### | ||
- &pytools-vm | ||
stage: "Pytest" | ||
name: "tools-py27" | ||
env: NAME=tools-py2.7 | ||
name: "tools-py35" | ||
env: NAME=tools-py3.5 | ||
language: python | ||
python: 2.7 | ||
python: 3.5 | ||
Comment on lines
+220
to
+223
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Python 3.5 has also reached end-of-life. Since it's a recent event (late 2020), it's okay to keep or remove it I guess. |
||
install: | ||
# Install gcc | ||
- source_pkg gcc | ||
|
@@ -246,11 +247,6 @@ matrix: | |
- coverage run -a tools/project.py -S | sed -n '/^Total/p' | ||
- coverage html | ||
|
||
- <<: *pytools-vm | ||
name: "tools-py35" | ||
env: NAME=tools-py3.5 | ||
python: 3.5 | ||
|
||
- <<: *pytools-vm | ||
name: "tools-py36" | ||
env: NAME=tools-py3.6 | ||
|
@@ -261,68 +257,8 @@ matrix: | |
env: NAME=tools-py3.7 | ||
python: 3.7 | ||
|
||
|
||
### Extended Tests ### | ||
- &extended-vm | ||
stage: "Extended" | ||
name: "littlefs" | ||
env: NAME=littlefs LITTLEFS=storage/filesystem/littlefs | ||
language: python | ||
python: 3.7 | ||
install: | ||
# Install gcc | ||
- source_pkg gcc | ||
- arm-none-eabi-gcc --version | ||
# Install python modules | ||
- python -m pip install --upgrade pip==18.1 | ||
- python -m pip install --upgrade setuptools==40.4.3 | ||
- pip install -r requirements.txt | ||
- pip list --verbose | ||
# Install test-specific packages | ||
- source_pkg fuse | ||
- source_pkg libfuse-dev | ||
- fusermount --version | ||
before_script: | ||
# Setup and patch littlefs-fuse | ||
- git clone https://github.com/armmbed/littlefs-fuse littlefs_fuse | ||
- git -C littlefs_fuse checkout 3f1ed6e37799e49e3710830dc6abb926d5503cf2 | ||
- echo '*' > littlefs_fuse/.mbedignore | ||
- rm -rf littlefs_fuse/littlefs/* | ||
- cp -r $(git ls-tree --name-only HEAD ${LITTLEFS}/littlefs/) littlefs_fuse/littlefs | ||
# Create file-backed disk | ||
- mkdir MOUNT | ||
- sudo chmod a+rw /dev/loop0 | ||
- dd if=/dev/zero bs=512 count=2048 of=DISK | ||
- losetup /dev/loop0 DISK | ||
- CFLAGS="-Werror -Wno-format" | ||
script: | ||
# Run local littlefs tests | ||
- make -C${LITTLEFS}/littlefs test QUIET=1 | ||
# Run local littlefs tests with set of variations | ||
- make -C${LITTLEFS}/littlefs test QUIET=1 CFLAGS+="-DLFS_READ_SIZE=64 -DLFS_PROG_SIZE=64" | ||
- make -C${LITTLEFS}/littlefs test QUIET=1 CFLAGS+="-DLFS_READ_SIZE=1 -DLFS_PROG_SIZE=1" | ||
- make -C${LITTLEFS}/littlefs test QUIET=1 CFLAGS+="-DLFS_READ_SIZE=512 -DLFS_PROG_SIZE=512" | ||
- make -C${LITTLEFS}/littlefs test QUIET=1 CFLAGS+="-DLFS_BLOCK_COUNT=1023 -DLFS_LOOKAHEAD=2048" | ||
- make -C${LITTLEFS}/littlefs clean test QUIET=1 CFLAGS+="-DLFS_NO_INTRINSICS" | ||
# Self-hosting littlefs fuzz test with littlefs-fuse | ||
- make -Clittlefs_fuse | ||
- littlefs_fuse/lfs --format /dev/loop0 | ||
- littlefs_fuse/lfs /dev/loop0 MOUNT | ||
- ls MOUNT | ||
- mkdir MOUNT/littlefs | ||
- cp -r $(git ls-tree --name-only HEAD ${LITTLEFS}/littlefs/) MOUNT/littlefs | ||
- ls MOUNT/littlefs | ||
- CFLAGS="-Wno-format" make -CMOUNT/littlefs -B test_dirs test_files QUIET=1 | ||
# Compile and find the code size with smallest configuration | ||
- cd ${TRAVIS_BUILD_DIR}/${LITTLEFS}/littlefs | ||
- make clean size | ||
CC='arm-none-eabi-gcc -mthumb' | ||
OBJ="$(ls lfs*.o | tr '\n' ' ')" | ||
CFLAGS+="-DLFS_NO_ASSERT -DLFS_NO_DEBUG -DLFS_NO_WARN -DLFS_NO_ERROR" | ||
| tee sizes | ||
- ccache -s | ||
- <<: extended-pinvalidate | ||
stage: "Extended" | ||
stage: "Pin validation" | ||
name: "pinvalidate" | ||
env: NAME=pinvalidate | ||
language: python | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.