Eric Fiselier | ae44aee | 2017-04-19 23:26:21 | [diff] [blame] | 1 | version: '{build}' |
| 2 | |
| 3 | shallow_clone: true |
| 4 | |
Eric Fiselier | ae44aee | 2017-04-19 23:26:21 | [diff] [blame] | 5 | build: |
| 6 | verbosity: detailed |
| 7 | |
Eric Fiselier | ae44aee | 2017-04-19 23:26:21 | [diff] [blame] | 8 | configuration: |
| 9 | - Debug |
| 10 | |
| 11 | environment: |
| 12 | matrix: |
Eric Fiselier | dc4e327 | 2017-05-04 01:17:21 | [diff] [blame] | 13 | - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017 |
Eric Fiselier | d9fadb2 | 2017-05-04 05:16:48 | [diff] [blame] | 14 | 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 Fiselier | ae44aee | 2017-04-19 23:26:21 | [diff] [blame] | 23 | |
| 24 | install: |
| 25 | ############################################################################ |
| 26 | # All external dependencies are installed in C:\projects\deps |
| 27 | ############################################################################ |
Eric Fiselier | d9fadb2 | 2017-05-04 05:16:48 | [diff] [blame] | 28 | - call "%APPVEYOR_BUILD_FOLDER%\\install-appveyor-reqs.cmd" |
Eric Fiselier | ae44aee | 2017-04-19 23:26:21 | [diff] [blame] | 29 | |
| 30 | before_build: |
Eric Fiselier | d9fadb2 | 2017-05-04 05:16:48 | [diff] [blame] | 31 | - call "%MSVC_SETUP_PATH%" %MSVC_SETUP_ARG% |
| 32 | - cd %APPVEYOR_BUILD_FOLDER% |
Eric Fiselier | ae44aee | 2017-04-19 23:26:21 | [diff] [blame] | 33 | |
| 34 | build_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 Fiselier | 385e4fb6 | 2017-05-04 05:32:54 | [diff] [blame^] | 46 | -DLLVM_LIT_ARGS="-sv --show-xfail --show-unsupported" |
Eric Fiselier | d9fadb2 | 2017-05-04 05:16:48 | [diff] [blame] | 47 | %APPVEYOR_BUILD_FOLDER% |
Eric Fiselier | ae44aee | 2017-04-19 23:26:21 | [diff] [blame] | 48 | |
| 49 | ############################################################################# |
| 50 | # Build Step |
| 51 | ############################################################################# |
| 52 | - ninja |
| 53 | |
| 54 | test_script: |
| 55 | - ninja check-cxx |
| 56 | |
| 57 | on_failure: |
| 58 | - appveyor PushArtifact CMakeFiles/CMakeOutput.log |
| 59 | - appveyor PushArtifact CMakeFiles/CMakeError.log |
| 60 | |
| 61 | artifacts: |
| 62 | - path: '_build/CMakeFiles/*.log' |
| 63 | name: logs |
Eric Fiselier | d9fadb2 | 2017-05-04 05:16:48 | [diff] [blame] | 64 | |
| 65 | cache: |
| 66 | - C:\projects\deps\ninja |
| 67 | - C:\projects\deps\cmake |
| 68 | - C:\projects\deps\llvm |