Skip to content

Commit

Permalink
Simplify AppVeyor build configuration
Browse files Browse the repository at this point in the history
Use (and therefore test) msvs-promote-path instead of convoluted
environment tweaking.
  • Loading branch information
dra27 committed Feb 20, 2017
1 parent c5b1134 commit 7d34f9b
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,18 +49,7 @@ install:
- call "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x64

build_script:
- set PFPATH=%PROGRAMFILES%
- set FLEXDLLDIR=%OCAMLROOT%\bin\flexdll
- echo VCPATH="`cygpath -p '%Path%'`" > %CYG_ROOT%\tmp\msenv
- echo LIB="%LIB%" >> %CYG_ROOT%\tmp\msenv
- echo LIBPATH="%LIBPATH%" >> %CYG_ROOT%\tmp\msenv
- echo INCLUDE="%INCLUDE%;%FLEXDLLDIR%" >> %CYG_ROOT%\tmp\msenv
- echo FLPATH="`cygpath '%FLEXDLLDIR%'`" >> %CYG_ROOT%\tmp\msenv
- echo PATH="$VCPATH:$FLPATH:$PATH" >> %CYG_ROOT%\tmp\msenv
- echo export PATH LIB LIBPATH INCLUDE >> %CYG_ROOT%\tmp\msenv
- echo export OCAMLBUILD_FIND=/usr/bin/find >> %CYG_ROOT%\tmp\msenv
- "%CYG_ROOT%/bin/bash -lc \"tr -d '\\r' </tmp/msenv > ~/.msenv64\""
- "%CYG_ROOT%/bin/bash -lc \"echo '. ~/.msenv64' >> ~/.bash_profile\""
- "%CYG_ROOT%/bin/bash -lc \"echo 'eval $($APPVEYOR_BUILD_FOLDER/tools/msvs-promote-path)' >> ~/.bash_profile\""
- '%CYG_ROOT%/bin/bash -lc "$APPVEYOR_BUILD_FOLDER/appveyor_build.sh"'

test_script:
Expand Down

0 comments on commit 7d34f9b

Please sign in to comment.