Macro.hx 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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-hxb-interp.hxml"].concat(args));
  7. // runCommand("haxe", ["compile-read-hxb-interp.hxml"].concat(args));
  8. // return; // don't overlook this
  9. runCommand("haxe", ["compile-macro.hxml"].concat(args));
  10. changeDirectory(displayDir);
  11. haxelibInstallGit("Simn", "haxeserver");
  12. runCommand("haxe", ["build.hxml"]);
  13. changeDirectory(sourcemapsDir);
  14. runCommand("haxe", ["run.hxml"]);
  15. changeDirectory(nullSafetyDir);
  16. infoMsg("No-target null safety:");
  17. runCommand("haxe", ["test.hxml"]);
  18. infoMsg("Js-es6 null safety:");
  19. runCommand("haxe", ["test-js-es6.hxml"]);
  20. changeDirectory(getMiscSubDir());
  21. runCommand("haxe", ["compile.hxml"]);
  22. changeDirectory(getMiscSubDir("resolution"));
  23. runCommand("haxe", ["run.hxml"]);
  24. changeDirectory(sysDir);
  25. runSysTest("haxe", ["compile-macro.hxml"].concat(args));
  26. switch Sys.systemName() {
  27. case 'Linux':
  28. changeDirectory(getMiscSubDir('compiler_loops'));
  29. runCommand("haxe", ["run.hxml"]);
  30. case _: // TODO
  31. }
  32. changeDirectory(threadsDir);
  33. runCommand("haxe", ["build.hxml", "--interp"]);
  34. deleteDirectoryRecursively(partyDir);
  35. runCommand("mkdir", [partyDir]);
  36. changeDirectory(partyDir);
  37. party();
  38. }
  39. static function party() {
  40. runCommand("git", ["clone", "https://github.com/haxetink/tink_core", "tink_core"]);
  41. changeDirectory("tink_core");
  42. runCommand("haxelib", ["newrepo"]);
  43. runCommand("haxelib", ["install", "tests.hxml", "--always"]);
  44. runCommand("haxelib", ["dev", "tink_core", "."]);
  45. runCommand("haxe", ["tests.hxml", "-w", "-WDeprecated", "--interp", "--macro", "addMetadata('@:exclude','Futures','testDelay')"]);
  46. }
  47. }