summaryrefslogtreecommitdiff
path: root/appveyor.yml
diff options
context:
space:
mode:
authorJames E. King, III <jking@apache.org>2017-02-21 21:29:17 -0500
committerJames E. King, III <jking@apache.org>2017-02-21 21:29:17 -0500
commit8615fee798be60dc94adaaa6b31b1db8566a2ead (patch)
tree521f11868a0242008c7a0c6a8c2a40a35de1b786 /appveyor.yml
parent43fb34df2871b69c2f34dc3bb353e65cbc9f8692 (diff)
downloadthrift-8615fee798be60dc94adaaa6b31b1db8566a2ead.tar.gz
THRIFT-4076: pick up PATH changes and JAVA_HOME from the registry after using chocolatey to install ant (and jdk, which it depends on)
This closes #1201
Diffstat (limited to 'appveyor.yml')
-rwxr-xr-xappveyor.yml10
1 files changed, 3 insertions, 7 deletions
diff --git a/appveyor.yml b/appveyor.yml
index aeb9d591a..a4df229ab 100755
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -29,8 +29,6 @@ os:
environment:
BOOST_ROOT: C:\Libraries\boost_1_59_0
BOOST_LIBRARYDIR: C:\Libraries\boost_1_59_0\lib64-msvc-14.0
- # Unfurtunately, this version needs manual update because old versions are quickly deleted.
- ANT_VERSION: 1.9.8
install:
- '"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x64'
@@ -54,8 +52,8 @@ install:
- cd ..
- appveyor-retry cinst -y ant
- appveyor-retry cinst -y winflexbison3
-## appveyor DownloadFile http://www.us.apache.org/dist/ant/binaries/apache-ant-%ANT_VERSION%-bin.zip
-# 7z x apache-ant-%ANT_VERSION%-bin.zip > nul
+# installation of ant brings in the latest jdk and sets JAVA_HOME - we need to pick these up from the registry
+- refreshenv
- cd %APPVEYOR_BUILD_FOLDER%
# TODO: Enable Haskell build
# - cinst HaskellPlatform -version 2014.2.0.0
@@ -64,10 +62,8 @@ install:
build_script:
- echo PATH=%PATH%
- set PATH=C:\ProgramData\chocolatey\bin;%PATH%
-## installation of ant brings in the latest jdk and sets JAVA_HOME
- echo JAVA_HOME=%JAVA_HOME%
-## set JAVA_HOME=C:\Program Files\Java\jdk1.7.0
-## set PATH=%JAVA_HOME%\bin;%PATH%
+# TODO: Enable Haskell build
# - set PATH=%PATH%;C:\Program Files (x86)\Haskell Platform\2014.2.0.0\bin
# - set PATH=%PATH%;C:\Program Files (x86)\Haskell Platform\2014.2.0.0\lib\extralibs\bin
- set PATH=C:\Python27-x64\scripts;C:\Python27-x64;%PATH%