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....@@ -59,6 +59,7 @@ clarity.
59## Building59## Building
6060
61[![Build Status](https://travis-ci.org/zig-lang/zig.svg?branch=master)](https://travis-ci.org/zig-lang/zig)61[![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
63### Dependencies64### 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...@@ -16,7 +16,9 @@ find_path(CLANG_INCLUDE_DIRS NAMES clang/Frontend/ASTUnit.h
16 find_library(CLANG_${_prettylibname_}_LIB NAMES ${_libname_}16 find_library(CLANG_${_prettylibname_}_LIB NAMES ${_libname_}
17 PATHS17 PATHS
18 /usr/lib/llvm-4.0/lib18 /usr/lib/llvm-4.0/lib
19 /mingw64/lib)19 /mingw64/lib
20 /c/msys64/mingw64/lib
21 c:\\msys64\\mingw64\\lib)
20 if(CLANG_${_prettylibname_}_LIB)22 if(CLANG_${_prettylibname_}_LIB)
21 set(CLANG_LIBRARIES ${CLANG_LIBRARIES} ${CLANG_${_prettylibname_}_LIB})23 set(CLANG_LIBRARIES ${CLANG_LIBRARIES} ${CLANG_${_prettylibname_}_LIB})
22 endif()24 endif()
cmake/Findlld.cmake+3-1
...@@ -20,7 +20,9 @@ else()...@@ -20,7 +20,9 @@ else()
20 find_library(LLD_${_prettylibname_}_LIB NAMES ${_libname_}20 find_library(LLD_${_prettylibname_}_LIB NAMES ${_libname_}
21 PATHS21 PATHS
22 /usr/lib/llvm-4.0/lib22 /usr/lib/llvm-4.0/lib
23 /mingw64/lib)23 /mingw64/lib
24 /c/msys64/mingw64/lib
25 c:/msys64/mingw64/lib)
24 if(LLD_${_prettylibname_}_LIB)26 if(LLD_${_prettylibname_}_LIB)
25 set(LLD_LIBRARIES ${LLD_LIBRARIES} ${LLD_${_prettylibname_}_LIB})27 set(LLD_LIBRARIES ${LLD_LIBRARIES} ${LLD_${_prettylibname_}_LIB})
26 endif()28 endif()
cmake/Findllvm.cmake+3
...@@ -10,6 +10,9 @@...@@ -10,6 +10,9 @@
10find_program(LLVM_CONFIG_EXE10find_program(LLVM_CONFIG_EXE
11 NAMES llvm-config llvm-config-4.011 NAMES llvm-config llvm-config-4.0
12 PATHS12 PATHS
13 "/mingw64/bin"
14 "/c/msys64/mingw64/bin"
15 "c:/msys64/mingw64/bin"
13 "C:/Libraries/llvm-4.0.0/bin")16 "C:/Libraries/llvm-4.0.0/bin")
1417
15execute_process(18execute_process(