blob: 4c9dbd4e4dad1367fb5ae64d2ef8a5e073eca17b [file] [log] [blame]
Eric Fiselierae44aee2017-04-19 23:26:211version: '{build}'
2
3shallow_clone: true
4
Eric Fiselierae44aee2017-04-19 23:26:215build:
6 verbosity: detailed
7
Eric Fiselierae44aee2017-04-19 23:26:218configuration:
9 - Debug
10
11environment:
12 matrix:
Eric Fiselierdc4e3272017-05-04 01:17:2113 - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
Eric Fiselierd9fadb22017-05-04 05:16:4814 CLANG_VERSION: ToT
15 MSVC_SETUP_PATH: C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat
16 MSVC_SETUP_ARG: x86
17 APPVEYOR_SAVE_CACHE_ON_ERROR: true
18 - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
19 CLANG_VERSION: 4
20 MSVC_SETUP_PATH: C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat
21 MSVC_SETUP_ARG: x86_amd64
22 APPVEYOR_SAVE_CACHE_ON_ERROR: true
Eric Fiselierae44aee2017-04-19 23:26:2123
24install:
25 ############################################################################
26 # All external dependencies are installed in C:\projects\deps
27 ############################################################################
Eric Fiselierd9fadb22017-05-04 05:16:4828 - call "%APPVEYOR_BUILD_FOLDER%\\install-appveyor-reqs.cmd"
Eric Fiselierae44aee2017-04-19 23:26:2129
30before_build:
Eric Fiselierd9fadb22017-05-04 05:16:4831 - call "%MSVC_SETUP_PATH%" %MSVC_SETUP_ARG%
32 - cd %APPVEYOR_BUILD_FOLDER%
Eric Fiselierae44aee2017-04-19 23:26:2133
34build_script:
35 - md C:\projects\build-libcxx
36 - cd C:\projects\build-libcxx
37 - echo %configuration%
38
39 #############################################################################
40 # Configuration Step
41 #############################################################################
42 - cmake -G Ninja %extra_cmake_flags%
43 -DCMAKE_C_COMPILER=clang-cl.exe -DCMAKE_CXX_COMPILER=clang-cl.exe
44 "-DCMAKE_BUILD_TYPE=%configuration%"
45 "-DLLVM_PATH=C:\projects\deps\llvm" -DLIBCXX_ENABLE_EXPERIMENTAL_LIBRARY=OFF
Eric Fiselier385e4fb62017-05-04 05:32:5446 -DLLVM_LIT_ARGS="-sv --show-xfail --show-unsupported"
Eric Fiselierd9fadb22017-05-04 05:16:4847 %APPVEYOR_BUILD_FOLDER%
Eric Fiselierae44aee2017-04-19 23:26:2148
49 #############################################################################
50 # Build Step
51 #############################################################################
52 - ninja
53
54test_script:
55 - ninja check-cxx
56
57on_failure:
58 - appveyor PushArtifact CMakeFiles/CMakeOutput.log
59 - appveyor PushArtifact CMakeFiles/CMakeError.log
60
61artifacts:
62 - path: '_build/CMakeFiles/*.log'
63 name: logs
Eric Fiselierd9fadb22017-05-04 05:16:4864
65cache:
66 - C:\projects\deps\ninja
67 - C:\projects\deps\cmake
68 - C:\projects\deps\llvm