2016-05-17 02:13:00 -07:00
|
|
|
#**************************************************************************
|
|
|
|
#* *
|
|
|
|
#* OCaml *
|
|
|
|
#* *
|
|
|
|
#* Christophe Troestler *
|
|
|
|
#* *
|
|
|
|
#* Copyright 2015 Christophe Troestler *
|
|
|
|
#* *
|
|
|
|
#* All rights reserved. This file is distributed under the terms of *
|
|
|
|
#* the GNU Lesser General Public License version 2.1, with the *
|
|
|
|
#* special exception on linking described in the file LICENSE. *
|
|
|
|
#* *
|
|
|
|
#**************************************************************************
|
|
|
|
|
2015-11-29 03:23:22 -08:00
|
|
|
# Compile the 64 bits version
|
|
|
|
platform:
|
|
|
|
- x64
|
|
|
|
|
2017-03-22 07:36:25 -07:00
|
|
|
image: Visual Studio 2015
|
|
|
|
|
2015-11-29 03:23:22 -08:00
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- trunk
|
2017-02-17 14:14:16 -08:00
|
|
|
- 4.05
|
2015-11-29 03:23:22 -08:00
|
|
|
|
|
|
|
# Do a shallow clone of the repo to speed up the build
|
|
|
|
clone_depth: 1
|
|
|
|
|
|
|
|
environment:
|
|
|
|
global:
|
2017-04-13 04:06:58 -07:00
|
|
|
CYG_ROOT: C:/cygwin64
|
2015-11-29 03:23:22 -08:00
|
|
|
CYG_MIRROR: http://mirrors.kernel.org/sourceware/cygwin/
|
2017-04-13 04:06:58 -07:00
|
|
|
CYG_CACHE: C:/cygwin64/var/cache/setup
|
2015-11-29 03:23:22 -08:00
|
|
|
OCAMLROOT: "%PROGRAMFILES%/OCaml"
|
2017-02-19 15:39:07 -08:00
|
|
|
OCAMLROOT2: "%PROGRAMFILES%/OCaml-mingw32"
|
2015-11-29 03:23:22 -08:00
|
|
|
|
|
|
|
cache:
|
2017-04-13 04:06:58 -07:00
|
|
|
- C:\cygwin64\var\cache\setup
|
2015-11-29 03:23:22 -08:00
|
|
|
|
|
|
|
install:
|
|
|
|
- mkdir "%OCAMLROOT%/bin/flexdll"
|
2016-12-17 07:01:05 -08:00
|
|
|
- appveyor DownloadFile "http://alain.frisch.fr/flexdll/flexdll-bin-0.35.zip" -FileName "flexdll.zip"
|
2017-03-22 11:37:48 -07:00
|
|
|
- appveyor DownloadFile "http://alain.frisch.fr/flexdll/flexdll-0.35.tar.gz" -FileName "flexdll.tar.gz"
|
2015-11-29 03:23:22 -08:00
|
|
|
- cinst 7zip.commandline
|
2017-03-22 11:37:48 -07:00
|
|
|
- mkdir flexdll-tmp
|
|
|
|
- cd flexdll-tmp
|
|
|
|
- 7za x -y ..\flexdll.zip
|
|
|
|
- for %%F in (flexdll.h flexlink.exe default_amd64.manifest) do copy %%F "%OCAMLROOT%\bin\flexdll"
|
|
|
|
- cd ..
|
2015-11-29 03:23:22 -08:00
|
|
|
# Make sure the Cygwin path comes before the Git one (otherwise
|
|
|
|
# cygpath behaves crazily), but after the MSVC one.
|
2017-04-13 04:06:58 -07:00
|
|
|
- set Path=C:\cygwin64\bin;%OCAMLROOT%\bin\flexdll;%Path%
|
2016-12-12 03:18:33 -08:00
|
|
|
- '%CYG_ROOT%\bin\bash -lc "cygcheck -dc cygwin"'
|
2017-04-13 04:06:58 -07:00
|
|
|
- '"%CYG_ROOT%\setup-x86_64.exe" -qgnNdO -R "%CYG_ROOT%" -s "%CYG_MIRROR%" -l "%CYG_CACHE%" -P diffutils -P make -P mingw64-i686-gcc-core >NUL'
|
2015-11-29 03:23:22 -08:00
|
|
|
- '%CYG_ROOT%\bin\bash -lc "cygcheck -dc cygwin"'
|
2017-03-27 08:16:38 -07:00
|
|
|
- set OCAML_PREV_PATH=%PATH%
|
|
|
|
- set OCAML_PREV_LIB=%LIB%
|
|
|
|
- set OCAML_PREV_INCLUDE=%INCLUDE%
|
2017-03-22 07:36:25 -07:00
|
|
|
- call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64\vcvars64.bat"
|
2015-11-29 03:23:22 -08:00
|
|
|
|
|
|
|
build_script:
|
2017-02-19 14:55:40 -08:00
|
|
|
- "%CYG_ROOT%/bin/bash -lc \"echo 'eval $($APPVEYOR_BUILD_FOLDER/tools/msvs-promote-path)' >> ~/.bash_profile\""
|
2015-11-29 03:23:22 -08:00
|
|
|
- '%CYG_ROOT%/bin/bash -lc "$APPVEYOR_BUILD_FOLDER/appveyor_build.sh"'
|
2017-03-27 08:16:38 -07:00
|
|
|
- set PATH=%OCAML_PREV_PATH%
|
|
|
|
- set LIB=%OCAML_PREV_LIB%
|
|
|
|
- set INCLUDE=%OCAML_PREV_INCLUDE%
|
|
|
|
- call "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x86
|
|
|
|
- '%CYG_ROOT%/bin/bash -lc "$APPVEYOR_BUILD_FOLDER/appveyor_build.sh msvc32-only"'
|
2015-12-04 04:55:51 -08:00
|
|
|
|
|
|
|
test_script:
|
2017-03-27 08:16:38 -07:00
|
|
|
- set PATH=%OCAML_PREV_PATH%
|
|
|
|
- set LIB=%OCAML_PREV_LIB%
|
|
|
|
- set INCLUDE=%OCAML_PREV_INCLUDE%
|
|
|
|
- call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64\vcvars64.bat"
|
2017-02-13 07:00:34 -08:00
|
|
|
- '%APPVEYOR_BUILD_FOLDER%\ocamlc.opt -version'
|
2015-12-04 04:55:51 -08:00
|
|
|
- set CAML_LD_LIBRARY_PATH=%OCAMLROOT%/lib/stublibs
|
2017-02-07 04:15:22 -08:00
|
|
|
- '%CYG_ROOT%/bin/bash -lc "cd $APPVEYOR_BUILD_FOLDER && make tests"'
|
2017-02-19 15:39:07 -08:00
|
|
|
- '%CYG_ROOT%/bin/bash -lc "cd $APPVEYOR_BUILD_FOLDER/../build-mingw32 && make tests"'
|
2017-02-07 04:15:22 -08:00
|
|
|
- '%CYG_ROOT%/bin/bash -lc "cd $APPVEYOR_BUILD_FOLDER && make install"'
|
2017-02-19 15:39:07 -08:00
|
|
|
- '%CYG_ROOT%/bin/bash -lc "cd $APPVEYOR_BUILD_FOLDER/../build-mingw32 && make install"'
|