Skip to content

Commit 05b6f07

Browse files
committed
Don't fail the build if CPU model or memory can't be detected
This is purely informative anyhow and there is no reason to stop the build just because this information couldn't be found (as happens when running in s390x VM, for example). Also avoid useless use of cat.
1 parent c71885d commit 05b6f07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ matrix:
495495
before_install:
496496
- date -u
497497
- uname -a
498-
- if test "$TRAVIS_OS_NAME" = "linux"; then lscpu && cat /proc/cpuinfo | grep "model name" && cat /proc/meminfo | grep MemTotal; fi
498+
- if test "$TRAVIS_OS_NAME" = "linux"; then lscpu; grep "model name" /proc/cpuinfo || echo 'Unknown CPU model'; grep "MemTotal" /proc/meminfo || echo 'Unknown system memory amount'; fi
499499
- if test "$TRAVIS_OS_NAME" = "osx"; then sysctl -a | grep brand_string; fi
500500
# Travis overrides CC environment with compiler predefined values
501501
- if test -n "$GCC"; then export CC="gcc-$GCC" && export CXX="g++-$GCC"; fi

0 commit comments

Comments
 (0)