Macro.hx 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. package runci.targets;
  2. import runci.System.*;
  3. import runci.Config.*;
  4. class Macro {
  5. static public function run(args:Array<String>) {
  6. runCommand("haxe", ["compile-macro.hxml", "--hxb", "bin/hxb/eval.zip"].concat(args));
  7. runCommand("haxe", ["compile-macro.hxml", "--hxb-lib", "bin/hxb/eval.zip"].concat(args));
  8. changeDirectory(displayDir);
  9. haxelibInstallGit("Simn", "haxeserver");
  10. #if include_legacy
  11. runCommand("haxe", ["build.hxml", "-D", "display.protocol=xml"]);
  12. #end
  13. runCommand("haxe", ["build.hxml", "-D", "display.protocol=jsonrpc"]);
  14. changeDirectory(sourcemapsDir);
  15. runCommand("haxe", ["run.hxml"]);
  16. changeDirectory(nullSafetyDir);
  17. infoMsg("No-target null safety:");
  18. runCommand("haxe", ["test.hxml"]);
  19. infoMsg("Js-es6 null safety:");
  20. runCommand("haxe", ["test-js-es6.hxml"]);
  21. changeDirectory(getMiscSubDir());
  22. runCommand("haxe", ["compile.hxml"]);
  23. changeDirectory(getMiscSubDir("resolution"));
  24. runCommand("haxe", ["run.hxml"]);
  25. Display.maybeRunDisplayTests(Eval);
  26. changeDirectory(sysDir);
  27. runSysTest("haxe", ["compile-macro.hxml"].concat(args));
  28. switch Sys.systemName() {
  29. case 'Linux':
  30. changeDirectory(getMiscSubDir('compiler_loops'));
  31. runCommand("haxe", ["run.hxml"]);
  32. case _: // TODO
  33. }
  34. changeDirectory(threadsDir);
  35. runCommand("haxe", ["build.hxml", "--interp"]);
  36. deleteDirectoryRecursively(partyDir);
  37. runCommand("mkdir", [partyDir]);
  38. changeDirectory(partyDir);
  39. party();
  40. }
  41. static function party() {
  42. runCommand("git", ["clone", "https://github.com/haxetink/tink_core", "tink_core"]);
  43. changeDirectory("tink_core");
  44. runCommand("haxelib", ["newrepo"]);
  45. runCommand("haxelib", ["install", "tests.hxml", "--always"]);
  46. runCommand("haxelib", ["dev", "tink_core", "."]);
  47. runCommand("haxe", ["tests.hxml", "-w", "-WDeprecated", "--interp", "--macro", "addMetadata('@:exclude','Futures','testDelay')"]);
  48. }
  49. }