2017-04-20 07:26:21 +08:00
|
|
|
version: '{build}'
|
|
|
|
|
|
|
|
shallow_clone: true
|
|
|
|
|
|
|
|
build:
|
|
|
|
verbosity: detailed
|
|
|
|
|
|
|
|
configuration:
|
|
|
|
- Debug
|
|
|
|
|
|
|
|
environment:
|
|
|
|
matrix:
|
2017-05-04 09:17:21 +08:00
|
|
|
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
|
2017-05-10 10:30:16 +08:00
|
|
|
CMAKE_OPTIONS: -DCMAKE_C_COMPILER=clang-cl.exe -DCMAKE_CXX_COMPILER=clang-cl.exe
|
2017-05-04 13:16:48 +08:00
|
|
|
CLANG_VERSION: ToT
|
|
|
|
MSVC_SETUP_PATH: C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat
|
|
|
|
MSVC_SETUP_ARG: x86
|
2017-05-10 10:30:16 +08:00
|
|
|
GENERATOR: Ninja
|
|
|
|
MAKE_PROGRAM: ninja
|
2017-05-04 13:16:48 +08:00
|
|
|
APPVEYOR_SAVE_CACHE_ON_ERROR: true
|
|
|
|
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
|
2017-05-10 10:30:16 +08:00
|
|
|
CMAKE_OPTIONS: -DCMAKE_C_COMPILER=clang-cl.exe -DCMAKE_CXX_COMPILER=clang-cl.exe
|
2017-05-04 13:16:48 +08:00
|
|
|
CLANG_VERSION: 4
|
|
|
|
MSVC_SETUP_PATH: C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat
|
|
|
|
MSVC_SETUP_ARG: x86_amd64
|
2017-05-10 10:30:16 +08:00
|
|
|
GENERATOR: Ninja
|
|
|
|
MAKE_PROGRAM: ninja
|
|
|
|
APPVEYOR_SAVE_CACHE_ON_ERROR: true
|
|
|
|
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
|
|
|
|
MINGW_PATH: C:\mingw-w64\i686-6.3.0-posix-dwarf-rt_v5-rev1\mingw32\bin
|
|
|
|
GENERATOR: MinGW Makefiles
|
|
|
|
MAKE_PROGRAM: mingw32-make
|
2017-05-04 13:16:48 +08:00
|
|
|
APPVEYOR_SAVE_CACHE_ON_ERROR: true
|
2017-04-20 07:26:21 +08:00
|
|
|
|
|
|
|
install:
|
|
|
|
############################################################################
|
|
|
|
# All external dependencies are installed in C:\projects\deps
|
|
|
|
############################################################################
|
2017-05-10 10:43:02 +08:00
|
|
|
- call "%APPVEYOR_BUILD_FOLDER%\\appveyor-reqs-install.cmd"
|
2017-04-20 07:26:21 +08:00
|
|
|
|
|
|
|
before_build:
|
2017-05-10 10:30:16 +08:00
|
|
|
- if DEFINED MSVC_SETUP_PATH call "%MSVC_SETUP_PATH%" %MSVC_SETUP_ARG%
|
2017-05-04 13:16:48 +08:00
|
|
|
- cd %APPVEYOR_BUILD_FOLDER%
|
2017-04-20 07:26:21 +08:00
|
|
|
|
|
|
|
build_script:
|
|
|
|
- md C:\projects\build-libcxx
|
|
|
|
- cd C:\projects\build-libcxx
|
|
|
|
- echo %configuration%
|
|
|
|
|
|
|
|
#############################################################################
|
|
|
|
# Configuration Step
|
|
|
|
#############################################################################
|
2017-05-10 10:30:16 +08:00
|
|
|
- cmake -G "%GENERATOR%" %CMAKE_OPTIONS%
|
2017-04-20 07:26:21 +08:00
|
|
|
"-DCMAKE_BUILD_TYPE=%configuration%"
|
|
|
|
"-DLLVM_PATH=C:\projects\deps\llvm" -DLIBCXX_ENABLE_EXPERIMENTAL_LIBRARY=OFF
|
2017-05-04 13:32:54 +08:00
|
|
|
-DLLVM_LIT_ARGS="-sv --show-xfail --show-unsupported"
|
2017-05-04 13:16:48 +08:00
|
|
|
%APPVEYOR_BUILD_FOLDER%
|
2017-04-20 07:26:21 +08:00
|
|
|
|
|
|
|
#############################################################################
|
|
|
|
# Build Step
|
|
|
|
#############################################################################
|
2017-05-10 10:30:16 +08:00
|
|
|
- "%MAKE_PROGRAM%"
|
2017-04-20 07:26:21 +08:00
|
|
|
|
|
|
|
test_script:
|
2017-05-10 10:34:56 +08:00
|
|
|
- "%MAKE_PROGRAM% check-cxx"
|
2017-04-20 07:26:21 +08:00
|
|
|
|
|
|
|
on_failure:
|
|
|
|
- appveyor PushArtifact CMakeFiles/CMakeOutput.log
|
|
|
|
- appveyor PushArtifact CMakeFiles/CMakeError.log
|
|
|
|
|
|
|
|
artifacts:
|
|
|
|
- path: '_build/CMakeFiles/*.log'
|
|
|
|
name: logs
|
2017-05-04 13:16:48 +08:00
|
|
|
|
|
|
|
cache:
|
|
|
|
- C:\projects\deps\ninja
|
|
|
|
- C:\projects\deps\cmake
|
2017-05-05 03:04:50 +08:00
|
|
|
- C:\projects\deps\llvm-installer.exe
|