Browse Source

add python-sys target to travis and allow failures

Simon Krajewski 11 years ago
parent
commit
cc9679b6bc
2 changed files with 8 additions and 0 deletions
  1. 2 0
      .travis.yml
  2. 6 0
      tests/RunTravis.hx

+ 2 - 0
.travis.yml

@@ -25,12 +25,14 @@ env:
     - TARGET=openfl-samples
     - TARGET=openfl-samples
     - TARGET=flixel-demos
     - TARGET=flixel-demos
     - TARGET=neko-sys
     - TARGET=neko-sys
+    - TARGET=python-sys
     - TARGET=bytecode
     - TARGET=bytecode
 
 
 matrix:
 matrix:
   fast_finish: true
   fast_finish: true
   allow_failures:
   allow_failures:
     - env: TARGET=flash8
     - env: TARGET=flash8
+    - env: TARGET=python-sys
 
 
 before_install:
 before_install:
   - travis_retry sudo apt-get update
   - travis_retry sudo apt-get update

+ 6 - 0
tests/RunTravis.hx

@@ -338,6 +338,12 @@ class RunTravis {
 				runCommand("haxe", ["compile-neko.hxml"]);
 				runCommand("haxe", ["compile-neko.hxml"]);
 				Sys.setCwd("bin/neko");
 				Sys.setCwd("bin/neko");
 				runCommand("neko", ["sys.n", "foo", "12", "a b c\\"]);
 				runCommand("neko", ["sys.n", "foo", "12", "a b c\\"]);
+			case "python-sys":
+				getPythonDependencies();
+				Sys.setCwd("../sys");
+				runCommand("haxe", ["compile-python.hxml"]);
+				Sys.setCwd("bin/python");
+				runCommand("python3", ["sys.py", "foo", "12", "a b c\\"]);
 			case "openfl-samples":
 			case "openfl-samples":
 				getOpenFLDependencies(unitDir);
 				getOpenFLDependencies(unitDir);