authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2021-04-15 16:20:43-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2021-04-15 16:20:43-07:00
log2b2920f5998fc464c7ebd342c36879a17e76e4b4
tree0e420e18febee1a143a17df5173ad251eff68cbf
parentc795e82cbccaa4c68272c7891841526c00f0db90

ci: drone: disable stage2 tests

See #8545

2 files changed, 8 insertions(+), 2 deletions(-)

build.zig+4-1
...@@ -52,6 +52,7 @@ pub fn build(b: *Builder) !void {...@@ -52,6 +52,7 @@ pub fn build(b: *Builder) !void {
52 const skip_libc = b.option(bool, "skip-libc", "Main test suite skips tests that link libc") orelse false;52 const skip_libc = b.option(bool, "skip-libc", "Main test suite skips tests that link libc") orelse false;
53 const skip_compile_errors = b.option(bool, "skip-compile-errors", "Main test suite skips compile error tests") orelse false;53 const skip_compile_errors = b.option(bool, "skip-compile-errors", "Main test suite skips compile error tests") orelse false;
54 const skip_run_translated_c = b.option(bool, "skip-run-translated-c", "Main test suite skips run-translated-c tests") orelse false;54 const skip_run_translated_c = b.option(bool, "skip-run-translated-c", "Main test suite skips run-translated-c tests") orelse false;
55 const skip_stage2_tests = b.option(bool, "skip-stage2-tests", "Main test suite skips self-hosted compiler tests") orelse false;
5556
56 const only_install_lib_files = b.option(bool, "lib-files-only", "Only install library files") orelse false;57 const only_install_lib_files = b.option(bool, "lib-files-only", "Only install library files") orelse false;
57 const is_stage1 = b.option(bool, "stage1", "Build the stage1 compiler, put stage2 behind a feature flag") orelse false;58 const is_stage1 = b.option(bool, "stage1", "Build the stage1 compiler, put stage2 behind a feature flag") orelse false;
...@@ -230,7 +231,9 @@ pub fn build(b: *Builder) !void {...@@ -230,7 +231,9 @@ pub fn build(b: *Builder) !void {
230231
231 const test_stage2_step = b.step("test-stage2", "Run the stage2 compiler tests");232 const test_stage2_step = b.step("test-stage2", "Run the stage2 compiler tests");
232 test_stage2_step.dependOn(&test_stage2.step);233 test_stage2_step.dependOn(&test_stage2.step);
233 test_step.dependOn(test_stage2_step);234 if (!skip_stage2_tests) {
235 test_step.dependOn(test_stage2_step);
236 }
234237
235 var chosen_modes: [4]builtin.Mode = undefined;238 var chosen_modes: [4]builtin.Mode = undefined;
236 var chosen_mode_index: usize = 0;239 var chosen_mode_index: usize = 0;
ci/drone/linux_script+4-1
...@@ -22,11 +22,14 @@ cd build...@@ -22,11 +22,14 @@ cd build
22cmake .. -DCMAKE_BUILD_TYPE=Release "-DCMAKE_INSTALL_PREFIX=$DISTDIR" -DZIG_STATIC=ON -DCMAKE_PREFIX_PATH=/deps/local -GNinja22cmake .. -DCMAKE_BUILD_TYPE=Release "-DCMAKE_INSTALL_PREFIX=$DISTDIR" -DZIG_STATIC=ON -DCMAKE_PREFIX_PATH=/deps/local -GNinja
2323
24samu install24samu install
25# run-translated-c tests are skipped due to: https://github.com/ziglang/zig/issues/8537
26# stage2 tests are skipped due to: https://github.com/ziglang/zig/issues/8545
25./zig build test \27./zig build test \
26 -Dskip-release \28 -Dskip-release \
27 -Dskip-non-native \29 -Dskip-non-native \
28 -Dskip-compile-errors \30 -Dskip-compile-errors \
29 -Dskip-run-translated-c # https://github.com/ziglang/zig/issues/853731 -Dskip-run-translated-c \
32 -Dskip-stage2-tests
3033
31if [ -z "$DRONE_PULL_REQUEST" ]; then34if [ -z "$DRONE_PULL_REQUEST" ]; then
32 mv ../LICENSE "$DISTDIR/"35 mv ../LICENSE "$DISTDIR/"