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 | 9fc0ba9 | 2017-05-10 02:30:16 | [diff] [blame] | 14 | CMAKE_OPTIONS: -DCMAKE_C_COMPILER=clang-cl.exe -DCMAKE_CXX_COMPILER=clang-cl.exe |
Eric Fiselier | d9fadb2 | 2017-05-04 05:16:48 | [diff] [blame] | 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 |
Eric Fiselier | 9fc0ba9 | 2017-05-10 02:30:16 | [diff] [blame] | 18 | GENERATOR: Ninja |
| 19 | MAKE_PROGRAM: ninja |
Eric Fiselier | d9fadb2 | 2017-05-04 05:16:48 | [diff] [blame] | 20 | APPVEYOR_SAVE_CACHE_ON_ERROR: true |
Eric Fiselier | 191da93 | 2019-04-03 20:36:51 | [diff] [blame] | 21 | # TODO: Maybe re-enable this configuration? Do we want to support MSVC 2015's runtime? |
| 22 | # - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015 |
| 23 | # MINGW_PATH: C:\mingw-w64\i686-6.3.0-posix-dwarf-rt_v5-rev1\mingw32\bin |
| 24 | # GENERATOR: MinGW Makefiles |
| 25 | # MAKE_PROGRAM: mingw32-make |
| 26 | # APPVEYOR_SAVE_CACHE_ON_ERROR: true |
Eric Fiselier | ae44aee | 2017-04-19 23:26:21 | [diff] [blame] | 27 | |
| 28 | install: |
| 29 | ############################################################################ |
| 30 | # All external dependencies are installed in C:\projects\deps |
| 31 | ############################################################################ |
Eric Fiselier | 52ad6e55 | 2017-05-10 02:43:02 | [diff] [blame] | 32 | - call "%APPVEYOR_BUILD_FOLDER%\\appveyor-reqs-install.cmd" |
Eric Fiselier | ae44aee | 2017-04-19 23:26:21 | [diff] [blame] | 33 | |
| 34 | before_build: |
Eric Fiselier | 9fc0ba9 | 2017-05-10 02:30:16 | [diff] [blame] | 35 | - if DEFINED MSVC_SETUP_PATH call "%MSVC_SETUP_PATH%" %MSVC_SETUP_ARG% |
Eric Fiselier | d9fadb2 | 2017-05-04 05:16:48 | [diff] [blame] | 36 | - cd %APPVEYOR_BUILD_FOLDER% |
Eric Fiselier | ae44aee | 2017-04-19 23:26:21 | [diff] [blame] | 37 | |
| 38 | build_script: |
| 39 | - md C:\projects\build-libcxx |
| 40 | - cd C:\projects\build-libcxx |
| 41 | - echo %configuration% |
| 42 | |
| 43 | ############################################################################# |
| 44 | # Configuration Step |
| 45 | ############################################################################# |
Eric Fiselier | 9fc0ba9 | 2017-05-10 02:30:16 | [diff] [blame] | 46 | - cmake -G "%GENERATOR%" %CMAKE_OPTIONS% |
Eric Fiselier | ae44aee | 2017-04-19 23:26:21 | [diff] [blame] | 47 | "-DCMAKE_BUILD_TYPE=%configuration%" |
| 48 | "-DLLVM_PATH=C:\projects\deps\llvm" -DLIBCXX_ENABLE_EXPERIMENTAL_LIBRARY=OFF |
Eric Fiselier | 385e4fb | 2017-05-04 05:32:54 | [diff] [blame] | 49 | -DLLVM_LIT_ARGS="-sv --show-xfail --show-unsupported" |
Eric Fiselier | d9fadb2 | 2017-05-04 05:16:48 | [diff] [blame] | 50 | %APPVEYOR_BUILD_FOLDER% |
Eric Fiselier | ae44aee | 2017-04-19 23:26:21 | [diff] [blame] | 51 | |
| 52 | ############################################################################# |
| 53 | # Build Step |
| 54 | ############################################################################# |
Eric Fiselier | 9fc0ba9 | 2017-05-10 02:30:16 | [diff] [blame] | 55 | - "%MAKE_PROGRAM%" |
Eric Fiselier | ae44aee | 2017-04-19 23:26:21 | [diff] [blame] | 56 | |
| 57 | test_script: |
Eric Fiselier | 8a64fd7 | 2017-05-10 02:34:56 | [diff] [blame] | 58 | - "%MAKE_PROGRAM% check-cxx" |
Eric Fiselier | ae44aee | 2017-04-19 23:26:21 | [diff] [blame] | 59 | |
| 60 | on_failure: |
| 61 | - appveyor PushArtifact CMakeFiles/CMakeOutput.log |
| 62 | - appveyor PushArtifact CMakeFiles/CMakeError.log |
| 63 | |
| 64 | artifacts: |
| 65 | - path: '_build/CMakeFiles/*.log' |
| 66 | name: logs |
Eric Fiselier | d9fadb2 | 2017-05-04 05:16:48 | [diff] [blame] | 67 | |
| 68 | cache: |
| 69 | - C:\projects\deps\ninja |
| 70 | - C:\projects\deps\cmake |
Eric Fiselier | 8f6c6b9 | 2017-05-04 19:04:50 | [diff] [blame] | 71 | - C:\projects\deps\llvm-installer.exe |