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-11 17:24:02 +00:00
|
|
|
- MSYSTEM: MINGW64
|
2018-01-18 12:02:05 +00:00
|
|
|
- MSYSTEM: MSVC
|
2018-02-07 07:11:51 +00:00
|
|
|
|
|
|
|
matrix:
|
|
|
|
fast_finish: true # set this flag to immediately finish build once one of the jobs fails.
|
2018-02-07 07:09:30 +00:00
|
|
|
allow_failures:
|
|
|
|
- platform: x64
|
2018-02-07 07:11:51 +00:00
|
|
|
|
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:20:01 +00:00
|
|
|
python waf configure --msvc_version="msvc 15.0"
|
2018-01-18 12:02:05 +00:00
|
|
|
python waf build
|
|
|
|
mkdir "${dir}\build\release\bin" -ea 0
|
2018-03-12 04:48:05 +00:00
|
|
|
mkdir "${dir}\build\release\lib\LLVM-6.0.0-win64\lib\clang\6.0.0\"
|
2018-01-18 12:02:05 +00:00
|
|
|
copy "build\release\bin\*" "${dir}\build\release\bin"
|
2018-03-12 04:48:05 +00:00
|
|
|
copy -recurse "build\LLVM-6.0.0-win64\lib\clang\6.0.0\include" "${dir}\build\release\lib\LLVM-6.0.0-win64\lib\clang\6.0.0\"
|
2018-01-18 12:02:05 +00:00
|
|
|
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
|
2018-02-11 17:24:02 +00:00
|
|
|
CXXFLAGS=-Wall /usr/bin/python waf configure build --llvm-config llvm-config 2>&1
|
2018-01-18 12:02:05 +00:00
|
|
|
'@
|
|
|
|
}
|
|
|
|
- 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-03-12 04:48:05 +00:00
|
|
|
- C:\projects\cquery\build\LLVM-6.0.0-win64.exe
|
|
|
|
- C:\projects\cquery\build\LLVM-6.0.0-win64\
|