shellcheck
This commit is contained in:
parent
4bbae178ca
commit
d9dbca2c63
@ -11,7 +11,7 @@ tasks:
|
||||
sudo apt-get purge gcc -y && sudo apt-get autoremove -y
|
||||
- lint:
|
||||
cd bazel-zig-cc
|
||||
shellcheck $(awk '/#!\/bin\/(ba)?sh/&&FNR==1{print FILENAME}' $(git ls-files)))
|
||||
shellcheck -x $(awk '/#!\/bin\/(ba)?sh/&&FNR==1{print FILENAME}' $(git ls-files))
|
||||
- test_list_toolchains: |
|
||||
cd bazel-zig-cc; . .envrc; echo "Available toolchains:"
|
||||
bazel query @zig_sdk//... | sed -En '/.*_toolchain$/ s/.*:(.*)_toolchain$/\1/p'
|
||||
|
3
ci/test
3
ci/test
@ -5,7 +5,8 @@ cd "$(dirname "$0")/.."
|
||||
|
||||
_build_and_file() {
|
||||
bazel build --color=yes --curses=yes "$@"
|
||||
local execpath=$(bazel aquery "$@" 2>/dev/null | \
|
||||
local execpath
|
||||
execpath=$(bazel aquery "$@" 2>/dev/null | \
|
||||
awk "/action 'GoLink/{f=1};/Outputs: /&&f{print;exit}" | \
|
||||
awk -F'\\[|\\]' '{print $2}')
|
||||
file "$execpath" | tee /dev/stderr
|
||||
|
Loading…
Reference in New Issue
Block a user