aboutsummaryrefslogtreecommitdiff
path: root/build.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2020-08-31 14:54:05 -0700
committerAndrew Kelley <andrew@ziglang.org>2020-08-31 14:54:05 -0700
commit26140678a5c72604f2baac3cb9d1e5f7b37b6b8d (patch)
treea1ea4317a1d797bfbfcd49c6bf03f3b5f1b532b9 /build.zig
parent2148336a8145c5db66bb0ea11ad02dd0813942f0 (diff)
downloadzig-26140678a5c72604f2baac3cb9d1e5f7b37b6b8d.tar.gz
zig-26140678a5c72604f2baac3cb9d1e5f7b37b6b8d.zip
ci: skip compile error tests on Windows
We're up against the 6 hour limit so this is a time-saving workaround. Compile error tests are generally not OS-specific so the coverage from the other platforms should be sufficient.
Diffstat (limited to 'build.zig')
-rw-r--r--build.zig5
1 files changed, 4 insertions, 1 deletions
diff --git a/build.zig b/build.zig
index 869fb3f208..8ac2d4f8ba 100644
--- a/build.zig
+++ b/build.zig
@@ -49,6 +49,7 @@ pub fn build(b: *Builder) !void {
const skip_release_safe = b.option(bool, "skip-release-safe", "Main test suite skips release-safe builds") orelse skip_release;
const skip_non_native = b.option(bool, "skip-non-native", "Main test suite skips non-native builds") orelse false;
const skip_libc = b.option(bool, "skip-libc", "Main test suite skips tests that link libc") orelse false;
+ const skip_compile_errors = b.option(bool, "skip-compile-errors", "Main test suite skips compile error tests") orelse false;
const only_install_lib_files = b.option(bool, "lib-files-only", "Only install library files") orelse false;
const enable_llvm = b.option(bool, "enable-llvm", "Build self-hosted compiler with LLVM backend enabled") orelse false;
@@ -184,7 +185,9 @@ pub fn build(b: *Builder) !void {
test_step.dependOn(tests.addRunTranslatedCTests(b, test_filter));
// tests for this feature are disabled until we have the self-hosted compiler available
// test_step.dependOn(tests.addGenHTests(b, test_filter));
- test_step.dependOn(tests.addCompileErrorTests(b, test_filter, modes));
+ if (!skip_compile_errors) {
+ test_step.dependOn(tests.addCompileErrorTests(b, test_filter, modes));
+ }
test_step.dependOn(docs_step);
}