blob: ee821d3df699106ab7357679c03ea66d08084977 [file] [log] [blame]
Anthony Green073bc9d2017-03-19 07:25:24 -04001shallow_clone: true
2
3# We're currently only testing 64-bit libffi built with Microsoft's
4# tools.
5# This matrix should be expanded to include at least:
6# 32- and 64-bit gcc/cygwin
7# 32- and 64-bit gcc/mingw
8# 32- and 64-bit clang/mingw
9# and perhaps more.
10
11image: Visual Studio 2013
12platform:
13 - x64
14
15environment:
16 global:
17 CYG_ROOT: C:/cygwin
18 CYG_CACHE: C:/cygwin/var/cache/setup
19 CYG_MIRROR: http://mirrors.kernel.org/sourceware/cygwin/
20 matrix:
21 - VSVER: 12
22
23install:
24 - ps: >-
25 If ($env:Platform -Match "x86") {
26 $env:VCVARS_PLATFORM="x86"
27 $env:BUILD="x86-pc-cygwin"
28 $env:HOST="x86-pc-windows"
29 } Else {
30 $env:VCVARS_PLATFORM="amd64"
31 $env:BUILD="x86_64-pc-cygwin"
32 $env:HOST="x86_64-pc-winnt"
33 }
34 - 'appveyor DownloadFile http://cygwin.com/setup-x86.exe -FileName setup.exe'
35 - 'setup.exe -qnNdO -R "%CYG_ROOT%" -s "%CYG_MIRROR%" -l "%CYG_CACHE%" -P dejagnu >NUL'
36 - '%CYG_ROOT%/bin/bash -lc "cygcheck -dc cygwin"'
37 - ps: $env:VSCOMNTOOLS=(Get-Content ("env:VS" + "$env:VSVER" + "0COMNTOOLS"))
38 - echo "Using Visual Studio %VSVER%.0 at %VSCOMNTOOLS%"
39 - call "%VSCOMNTOOLS%\..\..\VC\vcvarsall.bat" %VCVARS_PLATFORM%
40
41build_script:
42 - c:\cygwin\bin\sh -lc "(cd $OLDPWD; ./autogen.sh;)"
43 - c:\cygwin\bin\sh -lc "(cd $OLDPWD; ./configure CC='/cygdrive/c/projects/libffi/msvcc.sh -m64' CXX='/cygdrive/c/projects/libffi/msvcc.sh -m64' LD=link CPP='cl -nologo -EP' --build=$BUILD --host=$HOST; cp src/x86/ffitarget.h include; make; `)"
44
45# FIXME: "make check" currently fails. It just looks like msvcc needs
46# to learn about -L and -l options. If you add "make check; cat `find
47# ./ -name libffi.log" to the end of that build command you'll see
48# what I mean.