2017-12-17 18:14:30 +00:00
|
|
|
version: "{build}"
|
|
|
|
image: Visual Studio 2017
|
|
|
|
platform: x64
|
|
|
|
|
|
|
|
clone_folder: C:\projects\cquery
|
|
|
|
|
|
|
|
install:
|
|
|
|
- git submodule update --init
|
|
|
|
|
|
|
|
build_script:
|
|
|
|
- cd C:\projects\cquery
|
2018-01-07 10:39:54 +00:00
|
|
|
- python waf configure --msvc_version="msvc 15.0"
|
2017-12-17 18:14:30 +00:00
|
|
|
- python waf build
|
|
|
|
- ps: |
|
|
|
|
$dir = "cquery-${env:appveyor_build_version}-win64"
|
|
|
|
cd C:\projects\cquery
|
2017-12-23 18:37:37 +00:00
|
|
|
mkdir "${dir}\build\release\bin" -ea 0
|
2018-01-01 01:21:35 +00:00
|
|
|
mkdir "${dir}\build\release\lib\LLVM-5.0.1-win64\lib\clang\5.0.1\"
|
2017-12-17 18:14:30 +00:00
|
|
|
copy "build\release\bin\*" "${dir}\build\release\bin"
|
2018-01-01 01:21:35 +00:00
|
|
|
copy -recurse "build\LLVM-5.0.1-win64\lib\clang\5.0.1\include" "${dir}\build\release\lib\LLVM-5.0.1-win64\lib\clang\5.0.1\"
|
2017-12-17 18:14:30 +00:00
|
|
|
7z a -tzip "C:\projects\cquery\${dir}.zip" "${dir}"
|
2018-01-04 02:43:45 +00:00
|
|
|
- build\release\bin\cquery --ci --log-all-to-stderr --test-unit
|
|
|
|
- build\release\bin\cquery --ci --log-all-to-stderr --test-index
|
2017-12-17 18:14:30 +00:00
|
|
|
|
|
|
|
artifacts:
|
|
|
|
- path: 'cquery-*.zip'
|
|
|
|
|
|
|
|
cache:
|
2018-01-01 01:21:35 +00:00
|
|
|
- C:\projects\cquery\build\LLVM-5.0.1-win64.exe
|
|
|
|
- C:\projects\cquery\build\LLVM-5.0.1-win64\
|