forked from Kinvey/dotnet-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
51 lines (51 loc) · 1.76 KB
/
.travis.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
matrix:
include:
- name: "Linux"
os: linux
language: csharp
mono: none
dotnet: 3.0
dist: xenial
after_success:
- bash <(curl -s https://codecov.io/bash) -F Linux
- name: "macOS"
os: osx
language: generic
osx_image: xcode9.4
before_install:
- brew update
- brew cask install dotnet-sdk
- export PATH="$PATH:/usr/local/share/dotnet"
after_success:
- bash <(curl -s https://codecov.io/bash) -F macOS
# - name: "Mono"
# language: csharp
# solution: Kinvey.sln
# dotnet: 2.1
# before_install:
# - sudo apt update
# - sudo apt install -y nodejs npm
# - npm install -g gnomon
# before_script:
# - pushd TestFramework/Tests.Integration
# - nuget restore -SolutionDirectory ../..
# - popd
# - pushd sqlite-net/nuget/SQLite-net-std
# - dotnet build
# - popd
# - pushd Kinvey
# - dotnet build
# - popd
# - pushd TestFramework/Tests.Integration
# - msbuild
# - popd
# script:
# - (echo "Running Unit Tests"; 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) | gnomon --real-time=1000 ; test ${PIPESTATUS[0]} -eq 0
# after_success:
# - bash <(curl -s https://codecov.io/bash) -F Mono
install:
- dotnet tool install --global coverlet.console
- export PATH="$PATH:/home/travis/.dotnet/tools"
script:
- cd Kinvey.Tests; dotnet build
- dotnet test /p:CollectCoverage=true /p:CoverletOutputFormat=opencover