authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2017-05-23 00:42:53-04:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2017-06-03 12:47:23-04:00
loge64f0971fc788cefb348e9516cd3b284df7ea0df
treefcd343acc56d078d753c936f57a1bfe762734563
parent1e301b03a9110b3cd8a29530ad9cbc85b403a902

add appveyor integration testing


6 files changed, 26 insertions(+), 2 deletions(-)

README.md+1
......@@ -59,6 +59,7 @@ clarity.
5959## Building
6060
6161[![Build Status](https://travis-ci.org/zig-lang/zig.svg?branch=master)](https://travis-ci.org/zig-lang/zig)
62[![Build status](https://ci.appveyor.com/api/projects/status/4t80mk2dmucrc38i/branch/master?svg=true)](https://ci.appveyor.com/project/andrewrk/zig-d3l86/branch/master)
6263
6364### Dependencies
6465
ci/appveyor/appveyor.yml created+5
......@@ -0,0 +1,5 @@
1image: Visual Studio 2015
2platform:
3 - x64
4build_script:
5 - '%APPVEYOR_BUILD_FOLDER%\ci\appveyor\build_script.bat'
ci/appveyor/build_script.bat created+11
......@@ -0,0 +1,11 @@
1@echo on
2echo %APPVEYOR_BUILD_FOLDER%
3cd %APPVEYOR_BUILD_FOLDER%
4SET "PATH=C:\msys64\mingw64\bin;C:\msys64\usr\bin;%PATH%"
5SET "MSYSTEM=MINGW64"
6
7bash -lc "pacman -Syu --needed --noconfirm"
8bash -lc "pacman -Su --needed --noconfirm"
9bash -lc "pacman -S --needed --noconfirm make mingw64/mingw-w64-x86_64-make mingw64/mingw-w64-x86_64-cmake mingw64/mingw-w64-x86_64-clang mingw64/mingw-w64-x86_64-llvm mingw64/mingw-w64-x86_64-lld mingw64/mingw-w64-x86_64-gcc"
10
11bash -lc "cd ${APPVEYOR_BUILD_FOLDER} && mkdir build && cd build && cmake .. -G""MSYS Makefiles"" -DCMAKE_INSTALL_PREFIX=$(pwd) -DZIG_LIBC_LIB_DIR=$(dirname $(cc -print-file-name=crt1.o)) -DZIG_LIBC_INCLUDE_DIR=$(echo -n | cc -E -x c - -v 2>&1 | grep -B1 ""End of search list."" | head -n1 | cut -c 2- | sed ""s/ .*//"") -DZIG_LIBC_STATIC_LIB_DIR=$(dirname $(cc -print-file-name=crtbegin.o)) && make && make install"
cmake/Findclang.cmake+3-1
......@@ -16,7 +16,9 @@ find_path(CLANG_INCLUDE_DIRS NAMES clang/Frontend/ASTUnit.h
1616 find_library(CLANG_${_prettylibname_}_LIB NAMES ${_libname_}
1717 PATHS
1818 /usr/lib/llvm-4.0/lib
19 /mingw64/lib)
19 /mingw64/lib
20 /c/msys64/mingw64/lib
21 c:\\msys64\\mingw64\\lib)
2022 if(CLANG_${_prettylibname_}_LIB)
2123 set(CLANG_LIBRARIES ${CLANG_LIBRARIES} ${CLANG_${_prettylibname_}_LIB})
2224 endif()
cmake/Findlld.cmake+3-1
......@@ -20,7 +20,9 @@ else()
2020 find_library(LLD_${_prettylibname_}_LIB NAMES ${_libname_}
2121 PATHS
2222 /usr/lib/llvm-4.0/lib
23 /mingw64/lib)
23 /mingw64/lib
24 /c/msys64/mingw64/lib
25 c:/msys64/mingw64/lib)
2426 if(LLD_${_prettylibname_}_LIB)
2527 set(LLD_LIBRARIES ${LLD_LIBRARIES} ${LLD_${_prettylibname_}_LIB})
2628 endif()
cmake/Findllvm.cmake+3
......@@ -10,6 +10,9 @@
1010find_program(LLVM_CONFIG_EXE
1111 NAMES llvm-config llvm-config-4.0
1212 PATHS
13 "/mingw64/bin"
14 "/c/msys64/mingw64/bin"
15 "c:/msys64/mingw64/bin"
1316 "C:/Libraries/llvm-4.0.0/bin")
1417
1518execute_process(