-
Notifications
You must be signed in to change notification settings - Fork 2
/
.cirrus.yml
82 lines (78 loc) · 3.89 KB
/
.cirrus.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
task:
name: macOS .Net
osx_instance:
image: catalina-xcode
env:
DOTNET_ROOT: /usr/local/share/dotnet
PATH: $PATH:$DOTNET_ROOT
KINVEY_APP_KEY: '_kid_'
KINVEY_APP_SECRET: 'appSecret'
install_dotnet_sdk_script: brew cask install dotnet-sdk
check_version_script: dotnet --version
test_script: cd Kinvey.Tests; dotnet test /p:CollectCoverage=true /p:CoverletOutputFormat=opencover
# task:
# name: macOS Mono
# osx_instance:
# image: high-sierra-xcode-10.0
# env:
# DYLD_LIBRARY_PATH: $DYLD_LIBRARY_PATH:./packages/SQLitePCLRaw.lib.e_sqlite3.osx.1.1.11/runtimes/osx-x64/native
# DOTNET_ROOT: /usr/local/share/dotnet
# MONO_ROOT: /Library/Frameworks/Mono.framework/Versions/Current/Commands
# PATH: $PATH:$DOTNET_ROOT:~/.dotnet/tools:$MONO_ROOT
# install_dotnet_sdk_script: brew cask install dotnet-sdk
# check_dotnet_version_script: dotnet --version
# install_mono_sdk_script: brew cask install mono-mdk
# check_mono_version_script: mono --version
# install_coverlet_script: dotnet tool install --global coverlet.console
# nuget_restore_script: cd TestFramework/Tests.Integration; nuget restore -SolutionDirectory ../..
# build_sqlite-net_script: cd sqlite-net/nuget/SQLite-net-std; dotnet build
# build_kinvey_script: cd Kinvey; dotnet build
# build_script: cd TestFramework/Tests.Integration; msbuild
# test_script: coverlet TestFramework/Tests.Integration/bin/Debug/Tests.Integration.dll --target "mono" --targetargs "--debug packages/NUnit.ConsoleRunner.3.9.0/tools/nunit3-console.exe TestFramework/Tests.Integration/bin/Debug/Tests.Integration.dll" --format opencover
task:
name: Windows
windows_container:
image: mcr.microsoft.com/windows/servercore:ltsc2019
env:
DOTNET_ROOT: $USERPROFILE\AppData\Local\Microsoft\dotnet
PATH: '$DOTNET_ROOT;$PATH;'
KINVEY_APP_KEY: '_kid_'
KINVEY_APP_SECRET: 'appSecret'
install_dotnet_sdk_script:
- ps: "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; &([scriptblock]::Create((Invoke-WebRequest -useb 'https://dot.net/v1/dotnet-install.ps1'))) -Channel Current"
check_dotnet_script:
- ps: dotnet --version
- ps: dotnet --info
test_script:
- ps: cd Kinvey.Tests; dotnet test /p:CollectCoverage=true /p:CoverletOutputFormat=opencover; exit $LastExitCode
task:
name: Linux .Net
container:
image: mcr.microsoft.com/dotnet/core/sdk
env:
KINVEY_APP_KEY: '_kid_'
KINVEY_APP_SECRET: 'appSecret'
check_version_script: dotnet --version
apt_update_script: apt update
install_sqlite_script: apt install libsqlite3-dev sqlite3 -y
check_sqlite3_version_script: sqlite3 -version
test_script: cd Kinvey.Tests; dotnet test /p:CollectCoverage=true /p:CoverletOutputFormat=opencover
# task:
# name: Linux Mono
# container:
# image: mono
# env:
# LD_LIBRARY_PATH: $LD_LIBRARY_PATH:./packages/SQLitePCLRaw.lib.e_sqlite3.linux.1.1.11/runtimes/linux-x64/native
# DOTNET_ROOT: /root/.dotnet
# PATH: $PATH:$DOTNET_ROOT:$DOTNET_ROOT/tools
# apt_update_script: apt update
# install_git_script: apt install git -y
# install_icu_devtools_script: apt install icu-devtools -y
# install_dotnet_script: curl -sSL https://dot.net/v1/dotnet-install.sh | bash /dev/stdin --channel 2.1
# install_coverlet_script: dotnet tool install --global coverlet.console
# check_version_script: mono --version
# nuget_restore_script: cd TestFramework/Tests.Integration; nuget restore -SolutionDirectory ../..
# build_sqlite-net_script: cd sqlite-net/nuget/SQLite-net-std; dotnet build
# build_kinvey_script: cd Kinvey; dotnet build
# build_script: cd TestFramework/Tests.Integration; msbuild
# test_script: coverlet TestFramework/Tests.Integration/bin/Debug/Tests.Integration.dll --target "mono" --targetargs "--debug packages/NUnit.ConsoleRunner.3.9.0/tools/nunit3-console.exe TestFramework/Tests.Integration/bin/Debug/Tests.Integration.dll" --format opencover