zig/ci/zinc/linux_test.sh
Michael Dusan a7d215759e ci: fully activate ci.ziglang.org linux
- disable azure/linux
- split probe/build/test steps for log clarity
- add package step; enabled only when master/pull
- add on-master-success pipeline; enabled only when master/pull
2021-11-08 13:45:03 -05:00

38 lines
1.4 KiB
Bash
Executable File

#!/bin/sh
. ./ci/zinc/linux_base.sh
ZIG=$DEBUG_STAGING/bin/zig
$ZIG test test/behavior.zig -fno-stage1 -fLLVM -I test
$ZIG build test-behavior -Denable-qemu -Denable-wasmtime
$ZIG build test-compiler-rt -Denable-qemu -Denable-wasmtime
$ZIG build test-std -Denable-qemu -Denable-wasmtime
$ZIG build test-minilibc -Denable-qemu -Denable-wasmtime
$ZIG build test-compare-output -Denable-qemu -Denable-wasmtime
$ZIG build test-standalone -Denable-qemu -Denable-wasmtime
$ZIG build test-stack-traces -Denable-qemu -Denable-wasmtime
$ZIG build test-cli -Denable-qemu -Denable-wasmtime
$ZIG build test-asm-link -Denable-qemu -Denable-wasmtime
$ZIG build test-runtime-safety -Denable-qemu -Denable-wasmtime
$ZIG build test-translate-c -Denable-qemu -Denable-wasmtime
$ZIG build test-run-translated-c -Denable-qemu -Denable-wasmtime
$ZIG build docs -Denable-qemu -Denable-wasmtime
$ZIG build # test building self-hosted without LLVM
$ZIG build test-fmt -Denable-qemu -Denable-wasmtime
$ZIG build test-stage2 -Denable-qemu -Denable-wasmtime
# Produce the experimental std lib documentation.
mkdir -p $RELEASE_STAGING/docs/std
$ZIG test lib/std/std.zig \
--zig-lib-dir lib \
-femit-docs=$RELEASE_STAGING/docs/std \
-fno-emit-bin
# Look for HTML errors.
tidy --drop-empty-elements no -qe zig-cache/langref.html
# Explicit exit helps show last command duration.
exit