Browse Source

[CI] make with ADD_REVISION=1

Andy Li 10 years ago
parent
commit
b9f05ecdea
3 changed files with 4 additions and 4 deletions
  1. 1 1
      .travis.yml
  2. 1 1
      appveyor.yml
  3. 2 2
      tests/RunCi.hx

+ 1 - 1
.travis.yml

@@ -37,7 +37,7 @@ install:
   - if [ "${TRAVIS_OS_NAME}" = "osx" ]; then travis_retry brew install neko --HEAD; fi
   - if [ "${TRAVIS_OS_NAME}" = "osx" ]; then travis_retry brew install neko --HEAD; fi
 
 
 script:
 script:
-  - make OCAMLOPT=ocamlopt.opt -s
+  - make OCAMLOPT=ocamlopt.opt ADD_REVISION=1 -s
   - make tools -s
   - make tools -s
   - sudo make install -s
   - sudo make install -s
   - cd tests/
   - cd tests/

+ 1 - 1
appveyor.yml

@@ -46,7 +46,7 @@ install:
 build_script:
 build_script:
     - 'cd %APPVEYOR_BUILD_FOLDER%'
     - 'cd %APPVEYOR_BUILD_FOLDER%'
     - 'set PATH=%PATH%;%APPVEYOR_BUILD_FOLDER%'
     - 'set PATH=%PATH%;%APPVEYOR_BUILD_FOLDER%'
-    - '%CYG_ROOT%/bin/bash -lc "cd \"$OLDPWD\" && make -s -f Makefile.win WODI=wodi%WODI_ARCH% OCAMLOPT=ocamlopt.opt"'
+    - '%CYG_ROOT%/bin/bash -lc "cd \"$OLDPWD\" && make -s -f Makefile.win WODI=wodi%WODI_ARCH% OCAMLOPT=ocamlopt.opt ADD_REVISION=1"'
     - '%CYG_ROOT%/bin/bash -lc "cd \"$OLDPWD\" && make -s -f Makefile.win WODI=wodi%WODI_ARCH% OCAMLOPT=ocamlopt.opt tools"'
     - '%CYG_ROOT%/bin/bash -lc "cd \"$OLDPWD\" && make -s -f Makefile.win WODI=wodi%WODI_ARCH% OCAMLOPT=ocamlopt.opt tools"'
     - cd %APPVEYOR_BUILD_FOLDER%/tests/
     - cd %APPVEYOR_BUILD_FOLDER%/tests/
     - mkdir "%HAXELIB_ROOT%"
     - mkdir "%HAXELIB_ROOT%"

+ 2 - 2
tests/RunCi.hx

@@ -548,14 +548,14 @@ class RunCi {
 							//pass
 							//pass
 						case TravisCI:
 						case TravisCI:
 							changeDirectory(repoDir);
 							changeDirectory(repoDir);
-							runCommand("make", ["BYTECODE=1", "OCAMLOPT=ocamlopt.opt", "-s"]);
+							runCommand("make", ["BYTECODE=1", "OCAMLOPT=ocamlopt.opt", "ADD_REVISION=1", "-s"]);
 							runCommand("sudo", ["make", "install", "-s"]);
 							runCommand("sudo", ["make", "install", "-s"]);
 							changeDirectory(unitDir);
 							changeDirectory(unitDir);
 							runCommand("haxe", ["compile-macro.hxml"]);
 							runCommand("haxe", ["compile-macro.hxml"]);
 						case AppVeyor:
 						case AppVeyor:
 							// save time...
 							// save time...
 							// changeDirectory(repoDir);
 							// changeDirectory(repoDir);
-							// runCommand(Sys.getEnv("CYG_ROOT") + "/bin/bash", ["-lc", 'cd \"$$OLDPWD\" && make -s -f Makefile.win WODI=wodi${Sys.getEnv("WODI_ARCH")} OCAMLC=ocamlc.opt BYTECODE=1']);
+							// runCommand(Sys.getEnv("CYG_ROOT") + "/bin/bash", ["-lc", 'cd \"$$OLDPWD\" && make -s -f Makefile.win WODI=wodi${Sys.getEnv("WODI_ARCH")} OCAMLC=ocamlc.opt ADD_REVISION=1 BYTECODE=1']);
 							// changeDirectory(unitDir);
 							// changeDirectory(unitDir);
 							// runCommand("haxe", ["compile-macro.hxml"]);
 							// runCommand("haxe", ["compile-macro.hxml"]);
 					}
 					}