]> granicus.if.org Git - libjpeg-turbo/commitdiff
AppVeyor: Fix CI build
authorDRC <information@libjpeg-turbo.org>
Sat, 18 Mar 2017 18:24:50 +0000 (13:24 -0500)
committerDRC <information@libjpeg-turbo.org>
Sat, 18 Mar 2017 18:25:30 +0000 (13:25 -0500)
Something changed in the CI build environment, and our previous trick of
setting the Git URL to file://c:/projects/libjpeg-turbo no longer works.
Using cygpath to translate the Windows path to a MinGW-friendly format
is a better solution anyhow.

appveyor.yml

index 5b615ea07efc80f49f69d51810171f2d9503628b..4f2d6cc9f9d71ac2cada0e61b58106b411e25b75 100644 (file)
@@ -24,7 +24,9 @@ install:
 
 build_script:
   - cmd: >-
-      bash c:/buildscripts/buildljt -r file://%CD:\=/% -b /c/ljt.nightly %APPVEYOR_REPO_BRANCH% -v
+      for /f %%i in ('"cygpath %CD%"') do set MINGWPATH=%%i
+
+      bash c:/buildscripts/buildljt -r file://%MINGWPATH% -b /c/ljt.nightly %APPVEYOR_REPO_BRANCH% -v
 
       move c:\ljt.nightly\files\*.tar.gz .