1
hermetic_cc_toolchain/.build.yml
Motiejus Jakštys 5871171549 run bazel test
This simplifies the tests somewhat.
2022-02-04 10:07:34 +02:00

28 lines
785 B
YAML

image: debian/stable
packages:
- direnv
- shellcheck
- qemu-user
sources:
- https://git.sr.ht/~motiejus/bazel-zig-cc
environment:
CC: /usr/bin/false
triggers:
- action: email
condition: failure
to: motiejus+srht@jakstys.lt
tasks:
- setup: |
sudo apt-get purge gcc -y && sudo apt-get autoremove -y
- lint: |
cd bazel-zig-cc; . .envrc
shellcheck -x $(awk '/#!\/bin\/(ba)?sh/&&FNR==1{print FILENAME}' $(git ls-files))
bazel run //:buildifier
git diff --exit-code
- test_list_toolchains: |
cd bazel-zig-cc; . .envrc; echo "Available toolchains:"
bazel query @zig_sdk//... | sed -En '/.*_toolchain$/ s/.*:(.*)_toolchain$/\1/p'
- test_hello_on_toolchains: |
cd bazel-zig-cc
./ci/test --color=yes --curses=yes