-
Notifications
You must be signed in to change notification settings - Fork 22
/
appveyor.yml
89 lines (71 loc) · 2.88 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
version: 10.7.0.{build}
os: Windows Server 2012 R2
init:
- git config --global core.autocrlf input
environment:
global:
CC: gcc
STRIP: strip
MSYS_ROOT: C:\MinGW\msys\1.0
MINGW_ROOT: C:\MinGW
MSYS2_ROOT: C:\msys64
CYGWIN_CACHE: C:\cygwin\var\cache\setup
CYGWIN_MIRROR: http://mirrors.kernel.org/sourceware/cygwin/
matrix:
- TARGET: mingw32
MSYS_ARCH: x86
- TARGET: i686-w64-mingw32
MSYS2_ARCH: i686
MSYSTEM: MINGW32
- TARGET: x86_64-w64-mingw32
MSYS2_ARCH: x86_64
MSYSTEM: MINGW64
- TARGET: i686-pc-cygwin
CYGWIN_ARCH: x86
CYGWIN_ROOT: C:\cygwin
CYGWIN_PACKAGES: libffi-devel,libreadline-devel
- TARGET: x86_64-pc-cygwin
CYGWIN_ARCH: x86_64
CYGWIN_ROOT: C:\cygwin64
CYGWIN_PACKAGES: make,gcc-core,libffi6,libffi-devel,libreadline7,libreadline-devel,cygrunsrv,libisl10,libcloog-isl4
matrix:
allow_failures:
# Note: mingw32 with libffi may requires CFLAGS+="-DWINVER=0x0600"
- TARGET: mingw32
cache:
- '%MSYS2_ROOT%\var\cache'
- '%CYGWIN_CACHE%'
install:
- if defined MSYS2_ARCH appveyor SetVariable -Name PATH -Value "%MSYS2_ROOT%\usr\bin;%PATH%"
- if defined MSYS2_ARCH appveyor SetVariable -Name PATH -Value "%MSYS2_ROOT%\%MSYSTEM%\bin;%PATH%"
- if defined MSYS_ARCH appveyor SetVariable -Name PATH -Value "%MINGW_ROOT%\bin;%PATH%"
- if defined MSYS_ARCH appveyor SetVariable -Name PATH -Value "%MSYS_ROOT%\bin;%PATH%"
- if defined MSYS_ARCH curl -Os ftp://sourceware.org/pub/libffi/libffi-3.2.1.tar.gz
- if defined MSYS_ARCH tar xf libffi-3.2.1.tar.gz
- if defined MSYS_ARCH cd libffi-3.2.1
- if defined MSYS_ARCH sh -c "./configure --prefix=/usr/local"
- if defined MSYS_ARCH sh -c "make && make install"
- if defined MSYS_ARCH cd ..
- if defined MSYS_ARCH appveyor SetVariable -Name LIBRARY_PATH -Value "/usr/local/lib"
- if defined CYGWIN_ARCH appveyor SetVariable -Name PATH -Value "%CYGWIN_ROOT%\bin;%PATH%"
- if defined CYGWIN_ARCH C:\cygwin\setup-x86.exe -qnNdO --arch="%CYGWIN_ARCH%" --root="%CYGWIN_ROOT%" --site="%CYGWIN_MIRROR%" --local-package-dir="%CYGWIN_CACHE%" --packages="%CYGWIN_PACKAGES%"
- if defined CYGWIN_ARCH sh -lc ""
- if defined CYGWIN_ARCH sh -lc "cygcheck -cd cygwin $(echo %CYGWIN_PACKAGES% | tr , ' ')"
- if defined CYGWIN_ARCH sh -lc "cygserver-config -y && cygrunsrv --start cygserver"
- if defined CYGWIN_ARCH sh -lc "curl -OLsk https://github.com/bminor/glibc/raw/master/inet/netinet/icmp6.h"
- if defined CYGWIN_ARCH sh -lc "install -D icmp6.h /usr/include/netinet/icmp6.h"
- where %CC%
- '%CC% -v'
build_script:
- sh -c 'make CC="$CC --coverage"'
test_script:
- sh -c "./newlisp -v"
- sh -c "make testall"
on_success:
- set PYTHON=C:\Python27
- set PATH=%PYTHON%;%PYTHON%\Scripts;%APPDATA%\Python\Scripts;%PATH%
- pip install --user codecov
- codecov
artifacts:
- path: newlisp.exe
- path: newlisp.dll