Browse Source

test all targets again

Simon Krajewski 11 years ago
parent
commit
4412b00a48
4 changed files with 42 additions and 24 deletions
  1. 17 0
      .travis.yml
  2. 13 13
      tests/RunTravis.hx
  3. 1 0
      tests/unit/TestMisc.hx
  4. 11 11
      tests/unit/compile.hxml

+ 17 - 0
.travis.yml

@@ -7,8 +7,25 @@ env:
     # SAUCE_ACCESS_KEY
     - secure: sUvWUjCyPuWht4seNa4f2VG9DkvXkhZyLZfjJO9TUAHB2JndS16E2j/qrvKEjycyH6w8tU/B9vnjDRvvGrYXxEXcBEwsJVfkorFnRl9uwGCGIYrzjMhssEl3fMYZK7P304f+gAp5ULrDBX2gIaKeSa8lUNRtz2PsZOieE4kMdhk=
   matrix:
+    - TARGET=macro
+    - TARGET=neko
+    - TARGET=js
+    - TARGET=php
+    - TARGET=cpp
+    - TARGET=flash9
+    - TARGET=as3
+    - TARGET=java
+    - TARGET=cs
     - TARGET=python
+    - TARGET=flash8
     - TARGET=polygonal-ds
+    - TARGET=flambe
+    - TARGET=hxtemplo
+    - TARGET=munit
+    - TARGET=openfl-samples
+    - TARGET=flixel-demos
+    - TARGET=neko-sys
+    - TARGET=bytecode
 
 matrix:
   fast_finish: true

+ 13 - 13
tests/RunTravis.hx

@@ -175,19 +175,19 @@ class RunTravis {
 	}
 
 	static function parseTravisFile(path:String, ignoreBeforeInstall = false) {
-		//var yaml:TravisConfig = yaml.Yaml.read(path, Parser.options().useObjects());
-		//if (!ignoreBeforeInstall) {
-			//for (code in yaml.before_install) {
-				//var args = parseCommand(code);
-				//var cmd = args.shift();
-				//runCommand(cmd, args);
-			//}
-		//}
-		//for (code in yaml.script) {
-			//var args = parseCommand(code);
-			//var cmd = args.shift();
-			//runCommand(cmd, args);
-		//}
+		var yaml:TravisConfig = yaml.Yaml.read(path, Parser.options().useObjects());
+		if (!ignoreBeforeInstall) {
+			for (code in yaml.before_install) {
+				var args = parseCommand(code);
+				var cmd = args.shift();
+				runCommand(cmd, args);
+			}
+		}
+		for (code in yaml.script) {
+			var args = parseCommand(code);
+			var cmd = args.shift();
+			runCommand(cmd, args);
+		}
 	}
 
 	static function getPhpDependencies() {

+ 1 - 0
tests/unit/TestMisc.hx

@@ -151,6 +151,7 @@ class TestMisc extends Test {
 		var o = { add : c.add };
 		eq( o.add(1,2), 103 );
 		eq( o.add, o.add ); // we shouldn't create a new closure here
+
 		var o = { cos : Math.cos };
 		eq( o.cos(0), 1. );
 

+ 11 - 11
tests/unit/compile.hxml

@@ -14,15 +14,15 @@ compile-java-runner.hxml
 
 # targets
 
+--next compile-flash8.hxml
+--next compile-flash9.hxml
+--next compile-js.hxml
+--next compile-neko.hxml
+--next compile-php.hxml
+--next compile-as3.hxml
+--next compile-cpp.hxml
+--next compile-java.hxml
+--next compile-cs.hxml
 --next compile-python.hxml
-#--next compile-flash8.hxml
-#--next compile-flash9.hxml
-#--next compile-js.hxml
-#--next compile-neko.hxml
-#--next compile-php.hxml
-#--next compile-as3.hxml
-#--next compile-cpp.hxml
-#--next compile-java.hxml
-#--next compile-cs.hxml
-#--next compile-macro.hxml
-#--next compile-cs-unsafe.hxml
+--next compile-macro.hxml
+--next compile-cs-unsafe.hxml