Navigation Menu

Skip to content

Commit

Permalink
appveyor: use environment variables
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Oct 22, 2017
1 parent 7003c70 commit ec182db
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions appveyor.yml
Expand Up @@ -31,11 +31,12 @@ install:
# - choco install -y imdisk-toolkit
# - mkdir tmp
# - imdisk -a -t file -m tmp -o awe -s 1G -p "/fs:ntfs /q /y"
- ps: git log -n 1
- ps: git describe --abbrev=7 HEAD
- ruby -r pp -e 'pp ENV'
- ps: |
$GroongaVersionRaw = git describe --abbrev=7 HEAD
$Env:GROONGA_VERSION = $GroongaVersionRaw.TrimStart("v")
$Env:GROONGA_VERSION = (Get-Content base_version)
if ($Env:APPVEYOR_REPO_TAG -eq "false") {
$Env:GROONGA_VERSION += "-" + $Env:APPVERYOR_REPO_COMMIT.Substring(0, 7)
}
$Env:GROONGA_INSTALL_FOLDER = "groonga-" + $Env:GROONGA_VERSION
if ($Env:ARCH -eq "x86") {
$Env:GROONGA_INSTALL_FOLDER += "-x86"
Expand Down

0 comments on commit ec182db

Please sign in to comment.