[Groonga-commit] groonga/groonga at 1bbb671 [master] appveyor: include version to install folder

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Oct 19 14:52:25 JST 2017


Kouhei Sutou	2017-10-19 14:52:25 +0900 (Thu, 19 Oct 2017)

  New Revision: 1bbb671faa9408c6192fe3810f762f1a884d2806
  https://github.com/groonga/groonga/commit/1bbb671faa9408c6192fe3810f762f1a884d2806

  Message:
    appveyor: include version to install folder

  Modified files:
    appveyor.yml

  Modified: appveyor.yml (+10 -3)
===================================================================
--- appveyor.yml    2017-10-19 14:16:31 +0900 (62efad5b4)
+++ appveyor.yml    2017-10-19 14:52:25 +0900 (a89ac2a30)
@@ -31,9 +31,16 @@ install:
   # - choco install -y imdisk-toolkit
   # - mkdir tmp
   # - imdisk -a -t file -m tmp -o awe -s 1G -p "/fs:ntfs /q /y"
-  - ps: $Env:GROONGA_VERSION = Get-Content base_version
-  - set GROONGA_INSTALL_FOLDER=groonga-%GROONGA_VERSION%
-  - set FULL_GROONGA_INSTALL_FOLDER=%APPVEYOR_BUILD_FOLDER%\%GROONGA_INSTALL_FOLDER%
+  - ps: |
+      $GroongaVersionRaw = git describe --abbrev=7
+      $Env:GROONGA_VERSION = $GroongaVersionRaw.TrimStart("v")
+      $Env:GROONGA_INSTALL_FOLDER = "groonga-" + $Env:GROONGA_VERSION
+      if ($Env:ARCH -eq "x86") {
+        $Env:GROONGA_INSTALL_FOLDER += "-x86"
+      } else {
+        $Env:GROONGA_INSTALL_FOLDER += "-x64"
+      }
+      $Env:FULL_GROONGA_INSTALL_FOLDER = $Env:APPVEYOR_BUILD_FOLDER% + "\" + $Env:GROONGA_INSTALL_FOLDER
 
 build_script:
   - git submodule update --init
-------------- next part --------------
HTML����������������������������...
URL: https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20171019/7ec81161/attachment.htm 



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