-
Notifications
You must be signed in to change notification settings - Fork 126
/
appveyor.yml
42 lines (35 loc) · 1.4 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
version: 3.0.0.{build}
branches:
only:
- master
skip_tags: true
environment:
COVERALLS_REPO_TOKEN:
secure: rYG0uD7eOutfMDvCi7Fe/W855aWp3b3/onQnk06bxp7EEKsYYdji5yD1euE8M37L
init:
- cmd: git config --global core.autocrlf true
# Environment
image: Visual Studio 2019
clone_depth: 1
install:
- git submodule update --init --recursive
build_script:
# Fail fast if C# is broken
- cmd: msbuild /t:Restore src/Couchbase.Lite/Couchbase.Lite.csproj /p:Configuration=Debug_Coverage
- cmd: msbuild src/Couchbase.Lite/Couchbase.Lite.csproj /p:JUST_CSHARP=1 /p:Configuration=Debug_Coverage
# x86 is unused
- ps: |
New-Item -Type Directory vendor/couchbase-lite-core/build_cmake/x86/RelWithDebInfo
Push-Location vendor/couchbase-lite-core/build_cmake/x86/RelWithDebInfo
New-Item -Type File LiteCore.dll
New-Item -Type File LiteCore.pdb
Pop-Location
New-Item -Type Directory vendor/couchbase-lite-core/build_cmake/x64
Push-Location vendor/couchbase-lite-core/build_cmake/x64
cmake -G "Visual Studio 16 2019" -A x64 ..\..
cmake --build . --target LiteCore --config RelWithDebInfo
Pop-Location
- cmd: msbuild /t:Restore src/Couchbase.Lite.TestCoverage/Couchbase.Lite.TestCoverage.csproj
- cmd: msbuild src/Couchbase.Lite.TestCoverage/Couchbase.Lite.TestCoverage.sln
test_script:
- ps: .appveyor/test.ps1