[Groonga-commit] groonga/groonga at 2bba650 [master] appveyor: use PowerShell for if

Back to archive index

Kouhei Sutou null+****@clear*****
Tue Apr 26 16:20:44 JST 2016


Kouhei Sutou	2016-04-26 16:20:44 +0900 (Tue, 26 Apr 2016)

  New Revision: 2bba65054860ea34875ebc58d8507d2786ceaacc
  https://github.com/groonga/groonga/commit/2bba65054860ea34875ebc58d8507d2786ceaacc

  Message:
    appveyor: use PowerShell for if

  Modified files:
    appveyor.yml

  Modified: appveyor.yml (+8 -7)
===================================================================
--- appveyor.yml    2016-04-26 15:58:05 +0900 (222d6a2)
+++ appveyor.yml    2016-04-26 16:20:44 +0900 (9922b3b)
@@ -9,14 +9,16 @@ install:
   - SET PATH=C:\Ruby22-x64\bin;%PATH%
 
 build_script:
-  - git submodule update --init
-  - set
-  - |
-    if "%PROCESSOR_ARCHITECTURE%" == "x86" (
-      set CMAKE_GENERATOR_NAME=Visual Studio 12 2013
+  - ps: |
+    if ($env:PLATFORM -eq "x86") (
+      $env:PATH = "C:\Ruby22\bin;$env:PATH"
+      $env:CMAKE_GENERATOR_NAME = "Visual Studio 12 2013"
     ) else (
-      set CMAKE_GENERATOR_NAME=Visual Studio 12 2013 Win64
+      $env:PATH = "C:\Ruby22-x64\bin;$env:PATH"
+      $env:CMAKE_GENERATOR_NAME = "Visual Studio 12 2013 Win64"
     )
+  - set
+  - git submodule update --init
   - cmake . -G "%CMAKE_GENERATOR_NAME%"
   - cmake --build . --config Debug
 
@@ -27,7 +29,6 @@ notifications:
       - groonga-commit �� lists.osdn.me
     on_build_status_changed: true
 
-test: off
 before_test:
   - gem install grntest
 test_script:
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index