• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1version: '{build}'
2
3shallow_clone: true
4
5build:
6  verbosity: detailed
7
8configuration:
9  - Debug
10
11environment:
12  matrix:
13    - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
14      CMAKE_OPTIONS: -DCMAKE_C_COMPILER=clang-cl.exe -DCMAKE_CXX_COMPILER=clang-cl.exe
15      CLANG_VERSION: ToT
16      MSVC_SETUP_PATH: C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat
17      MSVC_SETUP_ARG: x86
18      GENERATOR: Ninja
19      MAKE_PROGRAM: ninja
20      APPVEYOR_SAVE_CACHE_ON_ERROR: true
21    - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
22      CMAKE_OPTIONS: -DCMAKE_C_COMPILER=clang-cl.exe -DCMAKE_CXX_COMPILER=clang-cl.exe
23      CLANG_VERSION: 4
24      MSVC_SETUP_PATH: C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat
25      MSVC_SETUP_ARG: x86_amd64
26      GENERATOR: Ninja
27      MAKE_PROGRAM: ninja
28      APPVEYOR_SAVE_CACHE_ON_ERROR: true
29    - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
30      MINGW_PATH: C:\mingw-w64\i686-6.3.0-posix-dwarf-rt_v5-rev1\mingw32\bin
31      GENERATOR: MinGW Makefiles
32      MAKE_PROGRAM: mingw32-make
33      APPVEYOR_SAVE_CACHE_ON_ERROR: true
34
35install:
36  ############################################################################
37  # All external dependencies are installed in C:\projects\deps
38  ############################################################################
39  - call "%APPVEYOR_BUILD_FOLDER%\\appveyor-reqs-install.cmd"
40
41before_build:
42  - if DEFINED MSVC_SETUP_PATH call "%MSVC_SETUP_PATH%" %MSVC_SETUP_ARG%
43  - cd %APPVEYOR_BUILD_FOLDER%
44
45build_script:
46  - md C:\projects\build-libcxx
47  - cd C:\projects\build-libcxx
48  - echo %configuration%
49
50  #############################################################################
51  # Configuration Step
52  #############################################################################
53  - cmake -G "%GENERATOR%" %CMAKE_OPTIONS%
54    "-DCMAKE_BUILD_TYPE=%configuration%"
55    "-DLLVM_PATH=C:\projects\deps\llvm" -DLIBCXX_ENABLE_EXPERIMENTAL_LIBRARY=OFF
56    -DLLVM_LIT_ARGS="-sv --show-xfail --show-unsupported"
57    %APPVEYOR_BUILD_FOLDER%
58
59  #############################################################################
60  # Build Step
61  #############################################################################
62  - "%MAKE_PROGRAM%"
63
64test_script:
65  - "%MAKE_PROGRAM% check-cxx"
66
67on_failure:
68  - appveyor PushArtifact CMakeFiles/CMakeOutput.log
69  - appveyor PushArtifact CMakeFiles/CMakeError.log
70
71artifacts:
72  - path: '_build/CMakeFiles/*.log'
73    name: logs
74
75cache:
76 - C:\projects\deps\ninja
77 - C:\projects\deps\cmake
78 - C:\projects\deps\llvm-installer.exe
79