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
|
|
|
|
|
2018-01-18 12:02:05 +00:00
|
|
|
environment:
|
|
|
|
CLICOLOR_FORCE: 1
|
|
|
|
matrix:
|
2018-02-07 05:14:24 +00:00
|
|
|
# - MSYSTEM: MINGW64
|
2018-01-18 12:02:05 +00:00
|
|
|
- MSYSTEM: MSVC
|
|
|
|
|
2017-12-17 18:14:30 +00:00
|
|
|
build_script:
|
|
|
|
- ps: |
|
2018-01-18 12:02:05 +00:00
|
|
|
If ($Env:MSYSTEM -Eq "MSVC") {
|
|
|
|
$dir = "cquery-${env:appveyor_build_version}-win64"
|
|
|
|
cd C:\projects\cquery
|
2018-02-07 05:14:24 +00:00
|
|
|
python waf configure
|
2018-01-18 12:02:05 +00:00
|
|
|
python waf build
|
|
|
|
mkdir "${dir}\build\release\bin" -ea 0
|
|
|
|
mkdir "${dir}\build\release\lib\LLVM-5.0.1-win64\lib\clang\5.0.1\"
|
|
|
|
copy "build\release\bin\*" "${dir}\build\release\bin"
|
|
|
|
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\"
|
|
|
|
7z a -tzip "C:\projects\cquery\${dir}.zip" "${dir}"
|
|
|
|
} Else {
|
|
|
|
C:\msys64\usr\bin\bash -lc @'
|
|
|
|
pacman -S --needed --noconfirm mingw-w64-x86_64-clang python
|
|
|
|
cd /c/projects/cquery
|
|
|
|
CXXFLAGS=-Wall /usr/bin/python waf configure build --use-system-clang 2>&1
|
|
|
|
'@
|
|
|
|
}
|
|
|
|
- set PATH=%PATH%;C:\msys64\%MSYSTEM%\bin
|
2018-01-04 02:43:45 +00:00
|
|
|
- build\release\bin\cquery --ci --log-all-to-stderr --test-unit
|
2018-01-18 12:02:05 +00:00
|
|
|
- IF "%MSYSTEM%"=="MSVC" 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\
|