diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2017-05-23 00:42:53 -0400 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2017-06-03 12:47:23 -0400 |
| commit | e64f0971fc788cefb348e9516cd3b284df7ea0df (patch) | |
| tree | fcd343acc56d078d753c936f57a1bfe762734563 /ci | |
| parent | 1e301b03a9110b3cd8a29530ad9cbc85b403a902 (diff) | |
| download | zig-e64f0971fc788cefb348e9516cd3b284df7ea0df.tar.gz zig-e64f0971fc788cefb348e9516cd3b284df7ea0df.zip | |
add appveyor integration testing
Diffstat (limited to 'ci')
| -rw-r--r-- | ci/appveyor/appveyor.yml | 5 | ||||
| -rw-r--r-- | ci/appveyor/build_script.bat | 11 |
2 files changed, 16 insertions, 0 deletions
diff --git a/ci/appveyor/appveyor.yml b/ci/appveyor/appveyor.yml new file mode 100644 index 0000000000..fcb7f97553 --- /dev/null +++ b/ci/appveyor/appveyor.yml @@ -0,0 +1,5 @@ +image: Visual Studio 2015 +platform: + - x64 +build_script: + - '%APPVEYOR_BUILD_FOLDER%\ci\appveyor\build_script.bat' diff --git a/ci/appveyor/build_script.bat b/ci/appveyor/build_script.bat new file mode 100644 index 0000000000..3cbba7a4b7 --- /dev/null +++ b/ci/appveyor/build_script.bat @@ -0,0 +1,11 @@ +@echo on +echo %APPVEYOR_BUILD_FOLDER% +cd %APPVEYOR_BUILD_FOLDER% +SET "PATH=C:\msys64\mingw64\bin;C:\msys64\usr\bin;%PATH%" +SET "MSYSTEM=MINGW64" + +bash -lc "pacman -Syu --needed --noconfirm" +bash -lc "pacman -Su --needed --noconfirm" +bash -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" + +bash -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" |
