ci: drone: disable stage2 tests

See #8545
This commit is contained in:
Andrew Kelley 2021-04-15 16:20:43 -07:00
parent c795e82cbc
commit 2b2920f599
2 changed files with 8 additions and 2 deletions

View File

@ -52,6 +52,7 @@ pub fn build(b: *Builder) !void {
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 skip_run_translated_c = b.option(bool, "skip-run-translated-c", "Main test suite skips run-translated-c tests") orelse false;
const skip_stage2_tests = b.option(bool, "skip-stage2-tests", "Main test suite skips self-hosted compiler tests") orelse false;
const only_install_lib_files = b.option(bool, "lib-files-only", "Only install library files") orelse false;
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 {
const test_stage2_step = b.step("test-stage2", "Run the stage2 compiler tests");
test_stage2_step.dependOn(&test_stage2.step);
test_step.dependOn(test_stage2_step);
if (!skip_stage2_tests) {
test_step.dependOn(test_stage2_step);
}
var chosen_modes: [4]builtin.Mode = undefined;
var chosen_mode_index: usize = 0;

View File

@ -22,11 +22,14 @@ cd build
cmake .. -DCMAKE_BUILD_TYPE=Release "-DCMAKE_INSTALL_PREFIX=$DISTDIR" -DZIG_STATIC=ON -DCMAKE_PREFIX_PATH=/deps/local -GNinja
samu install
# run-translated-c tests are skipped due to: https://github.com/ziglang/zig/issues/8537
# stage2 tests are skipped due to: https://github.com/ziglang/zig/issues/8545
./zig build test \
-Dskip-release \
-Dskip-non-native \
-Dskip-compile-errors \
-Dskip-run-translated-c # https://github.com/ziglang/zig/issues/8537
-Dskip-run-translated-c \
-Dskip-stage2-tests
if [ -z "$DRONE_PULL_REQUEST" ]; then
mv ../LICENSE "$DISTDIR/"