Przeglądaj źródła

[ci] enable CI, disable tests that do not apply any more

Rudy Ges 1 rok temu
rodzic
commit
7eb8b68642

+ 16 - 5
.github/workflows/main.yml

@@ -371,8 +371,16 @@ jobs:
       fail-fast: false
       fail-fast: false
       matrix:
       matrix:
         ocaml: ["4.08.1", "5.0.0"]
         ocaml: ["4.08.1", "5.0.0"]
-        # target: [macro, js, hl, cpp, 'java,jvm', cs, php, python, lua, flash, neko]
-        target: [macro]
+        target: [macro, js, hl, cpp, 'java,jvm', cs, php, python, lua, flash, neko]
+        include:
+          - target: hl
+            APT_PACKAGES: cmake ninja-build libturbojpeg-dev
+          - target: cpp
+            APT_PACKAGES: gcc-multilib g++-multilib
+          - target: lua
+            APT_PACKAGES: ncurses-dev
+          - target: flash
+            APT_PACKAGES: libglib2.0-0 libgtk2.0-0 libfreetype6 xvfb
     steps:
     steps:
       - uses: actions/checkout@main
       - uses: actions/checkout@main
         with:
         with:
@@ -689,7 +697,7 @@ jobs:
       fail-fast: false
       fail-fast: false
       matrix:
       matrix:
         # TODO enable lua after https://github.com/HaxeFoundation/haxe/issues/10919
         # TODO enable lua after https://github.com/HaxeFoundation/haxe/issues/10919
-        target: [macro]
+        target: [macro, js, hl, cpp, 'java,jvm', cs, php, python, flash, neko]
     steps:
     steps:
       - uses: actions/checkout@main
       - uses: actions/checkout@main
         with:
         with:
@@ -786,7 +794,7 @@ jobs:
       matrix:
       matrix:
         # TODO jvm: https://github.com/HaxeFoundation/haxe/issues/8601
         # TODO jvm: https://github.com/HaxeFoundation/haxe/issues/8601
         # TODO enable lua after https://github.com/HaxeFoundation/haxe/issues/10919
         # TODO enable lua after https://github.com/HaxeFoundation/haxe/issues/10919
-        target: [macro]
+        target: [macro, js, hl, cpp, java, cs, php, python, flash, neko]
     steps:
     steps:
       - uses: actions/checkout@main
       - uses: actions/checkout@main
         with:
         with:
@@ -880,7 +888,10 @@ jobs:
     strategy:
     strategy:
       fail-fast: false
       fail-fast: false
       matrix:
       matrix:
-        target: [macro]
+        target: [macro, js, hl, cpp, 'java,jvm', cs, php, python, flash, neko]
+        include:
+          - target: hl
+            BREW_PACKAGES: ninja
     steps:
     steps:
       - uses: actions/checkout@main
       - uses: actions/checkout@main
         with:
         with:

+ 3 - 3
tests/runci/targets/Macro.hx

@@ -5,9 +5,9 @@ import runci.Config.*;
 
 
 class Macro {
 class Macro {
 	static public function run(args:Array<String>) {
 	static public function run(args:Array<String>) {
-		runCommand("haxe", ["compile-hxb-interp.hxml"].concat(args));
-		runCommand("haxe", ["compile-read-hxb-interp.hxml"].concat(args));
-		return; // don't overlook this
+		// runCommand("haxe", ["compile-hxb-interp.hxml"].concat(args));
+		// runCommand("haxe", ["compile-read-hxb-interp.hxml"].concat(args));
+		// return; // don't overlook this
 
 
 		runCommand("haxe", ["compile-macro.hxml"].concat(args));
 		runCommand("haxe", ["compile-macro.hxml"].concat(args));
 
 

+ 41 - 39
tests/server/src/cases/ServerTests.hx

@@ -112,26 +112,26 @@ class ServerTests extends TestCase {
 		assertSuccess();
 		assertSuccess();
 	}
 	}
 
 
-	function testDisplayModuleRecache() {
-		vfs.putContent("HelloWorld.hx", getTemplate("HelloWorld.hx"));
-		var args = ["--main", "HelloWorld", "--interp"];
-		runHaxe(args);
-		runHaxe(args);
-		assertReuse("HelloWorld");
+	// function testDisplayModuleRecache() {
+	// 	vfs.putContent("HelloWorld.hx", getTemplate("HelloWorld.hx"));
+	// 	var args = ["--main", "HelloWorld", "--interp"];
+	// 	runHaxe(args);
+	// 	runHaxe(args);
+	// 	assertReuse("HelloWorld");
 
 
-		var args2 = ["--main", "HelloWorld", "--interp", "--display", "HelloWorld.hx@64@type"];
-		runHaxe(args2);
+	// 	var args2 = ["--main", "HelloWorld", "--interp", "--display", "HelloWorld.hx@64@type"];
+	// 	runHaxe(args2);
 
 
-		runHaxe(args);
-		assertReuse("HelloWorld");
+	// 	runHaxe(args);
+	// 	assertReuse("HelloWorld");
 
 
-		// make sure we still invalidate if the file does change
-		runHaxeJson([], ServerMethods.Invalidate, {file: new FsPath("HelloWorld.hx")});
-		runHaxe(args2);
+	// 	// make sure we still invalidate if the file does change
+	// 	runHaxeJson([], ServerMethods.Invalidate, {file: new FsPath("HelloWorld.hx")});
+	// 	runHaxe(args2);
 
 
-		runHaxe(args);
-		assertSkipping("HelloWorld", Tainted("check_display_file"));
-	}
+	// 	runHaxe(args);
+	// 	assertSkipping("HelloWorld", Tainted("check_display_file"));
+	// }
 
 
 	function testMutuallyDependent() {
 	function testMutuallyDependent() {
 		vfs.putContent("MutuallyDependent1.hx", getTemplate("MutuallyDependent1.hx"));
 		vfs.putContent("MutuallyDependent1.hx", getTemplate("MutuallyDependent1.hx"));
@@ -223,6 +223,7 @@ class ServerTests extends TestCase {
 		vfs.putContent("HelloWorld.hx", getTemplate("HelloWorld.hx"));
 		vfs.putContent("HelloWorld.hx", getTemplate("HelloWorld.hx"));
 		var args = ["--main", "HelloWorld", "--interp"];
 		var args = ["--main", "HelloWorld", "--interp"];
 		runHaxe(args);
 		runHaxe(args);
+		assertSuccess();
 		runHaxe(args);
 		runHaxe(args);
 		assertReuse("HelloWorld");
 		assertReuse("HelloWorld");
 		runHaxeJson([], ServerMethods.Invalidate, {file: new FsPath("HelloWorld.hx")});
 		runHaxeJson([], ServerMethods.Invalidate, {file: new FsPath("HelloWorld.hx")});
@@ -232,32 +233,33 @@ class ServerTests extends TestCase {
 			Assert.equals(0, res.length);
 			Assert.equals(0, res.length);
 		});
 		});
 		runHaxe(args);
 		runHaxe(args);
+		// Note: reusing from successful compilation above
 		assertReuse("HelloWorld");
 		assertReuse("HelloWorld");
 	}
 	}
 
 
-	function testDiagnosticsRecache2() {
-		vfs.putContent("HelloWorld.hx", getTemplate("HelloWorld.hx"));
-		var args = ["--main", "HelloWorld", "--interp"];
-		runHaxeJsonCb(args, DisplayMethods.Diagnostics, {file: new FsPath("HelloWorld.hx")}, res -> {
-			Assert.equals(0, res.length);
-		});
-		runHaxe(args);
-		assertReuse("HelloWorld");
-	}
-
-	function testDiagnosticsRecache3() {
-		vfs.putContent("HelloWorld.hx", getTemplate("HelloWorld.hx"));
-		var args = ["--main", "HelloWorld", "--interp"];
-		runHaxe(args);
-		runHaxe(args);
-		assertReuse("HelloWorld");
-		runHaxeJson([], ServerMethods.Invalidate, {file: new FsPath("HelloWorld.hx")});
-		runHaxeJsonCb(args, DisplayMethods.Diagnostics, {file: new FsPath("HelloWorld.hx")}, res -> {
-			Assert.equals(0, res.length);
-		});
-		runHaxe(args.concat(["--display", "HelloWorld.hx@0@hover"]));
-		assertReuse("HelloWorld");
-	}
+	// function testDiagnosticsRecache2() {
+	// 	vfs.putContent("HelloWorld.hx", getTemplate("HelloWorld.hx"));
+	// 	var args = ["--main", "HelloWorld", "--interp"];
+	// 	runHaxeJsonCb(args, DisplayMethods.Diagnostics, {file: new FsPath("HelloWorld.hx")}, res -> {
+	// 		Assert.equals(0, res.length);
+	// 	});
+	// 	runHaxe(args);
+	// 	assertReuse("HelloWorld");
+	// }
+
+	// function testDiagnosticsRecache3() {
+	// 	vfs.putContent("HelloWorld.hx", getTemplate("HelloWorld.hx"));
+	// 	var args = ["--main", "HelloWorld", "--interp"];
+	// 	runHaxe(args);
+	// 	runHaxe(args);
+	// 	assertReuse("HelloWorld");
+	// 	runHaxeJson([], ServerMethods.Invalidate, {file: new FsPath("HelloWorld.hx")});
+	// 	runHaxeJsonCb(args, DisplayMethods.Diagnostics, {file: new FsPath("HelloWorld.hx")}, res -> {
+	// 		Assert.equals(0, res.length);
+	// 	});
+	// 	runHaxe(args.concat(["--display", "HelloWorld.hx@0@hover"]));
+	// 	assertReuse("HelloWorld");
+	// }
 
 
 	function testSyntaxCache() {
 	function testSyntaxCache() {
 		vfs.putContent("HelloWorld.hx", getTemplate("HelloWorld.hx"));
 		vfs.putContent("HelloWorld.hx", getTemplate("HelloWorld.hx"));