diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2020-08-31 14:54:05 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2020-08-31 14:54:05 -0700 |
| commit | 26140678a5c72604f2baac3cb9d1e5f7b37b6b8d (patch) | |
| tree | a1ea4317a1d797bfbfcd49c6bf03f3b5f1b532b9 /build.zig | |
| parent | 2148336a8145c5db66bb0ea11ad02dd0813942f0 (diff) | |
| download | zig-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.zig | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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); } |
