-
Notifications
You must be signed in to change notification settings - Fork 147
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make etc/ci/describe-system-config.sh POSIX-compliant
For alpine
- Loading branch information
1 parent
2beaa25
commit dbdc349
Showing
1 changed file
with
21 additions
and
7 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
@@ -1,32 +1,46 @@ | ||
#!/usr/bin/env bash | ||
#!/bin/sh | ||
|
||
cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" | ||
cd -- "$( dirname -- "$0" )" | ||
cd ../.. | ||
|
||
function run() { | ||
"${SHELL}" -c "$@" || true | ||
} | ||
if [ ! -z "${SHELL}" ]; then | ||
run() { | ||
"${SHELL}" -c "$@" || true | ||
} | ||
else | ||
run() { | ||
/bin/sh -c "$@" || true | ||
} | ||
fi | ||
|
||
if [ ! -z "$CI" ]; then | ||
function group() { | ||
group() { | ||
echo "::group::$@" | ||
run "$@" | ||
echo "::endgroup::" | ||
} | ||
else | ||
function group() { run "$@"; } | ||
group() { run "$@"; } | ||
fi | ||
|
||
group lscpu | ||
group uname -a | ||
group lsb_release -a | ||
group ulimit -aH | ||
group ulimit -aS | ||
group "cat /etc/os-release" | ||
group "cat /proc/cpuinfo" | ||
group "cat /proc/meminfo" | ||
group "apk info" | ||
group "dpkg -l" | ||
group ghc --version | ||
group ghc -v | ||
group gcc --version | ||
group gcc -v | ||
group ocamlc -config | ||
group coqc --config | ||
group coqc --version | ||
group "true | coqtop" | ||
group etc/machine.sh | ||
group "echo PATH=$PATH" | ||
group "echo SHELL=$SHELL" |