-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
66 lines (60 loc) · 1.68 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
language: generic
cache:
directories:
- $HOME/.nuget/packages
addons:
apt:
packages:
- build-essential
- gettext
- clang-3.8
- cmake
- libcurl4-openssl-dev
- libicu-dev
- libssl-dev
- libunwind8
- libunwind8-dev
- zlib1g
matrix:
include:
- os: linux
dist: trusty
sudo: required
compiler: clang
runtime:
- name: netcore
version: 2
env: CONFIGURATION=Release FRAMEWORK=netcoreapp2.2
- os: osx
osx_image: xcode9.1
runtime:
- name: netcore
version: 2
env: CONFIGURATION=Release FRAMEWORK=netcoreapp2.2
before_install:
- if test "$TRAVIS_OS_NAME" == "osx"; then
sw_vers -productVersion;
sudo curl -sSL https://dot.net/v1/dotnet-install.sh | bash /dev/stdin --channel 2.2;
eval $(/usr/libexec/path_helper -s);
PATH="$HOME/.dotnet":"$PATH";
else
lsb_release -a;
which $cc;
sudo apt-get install curl;
sudo curl -sSL https://dot.net/v1/dotnet-install.sh | bash /dev/stdin --channel 2.2;
PATH="$HOME/.dotnet":"$PATH";
fi;
install:
# Display dotnet version info
- which dotnet;
if [ $? -eq 0 ]; then
echo "Using dotnet:";
dotnet --info;
else
echo "dotnet.exe not found";
exit 1;
fi
script:
# Run tests
- dotnet test -c $CONFIGURATION -f $FRAMEWORK ./test/BaristaLabs.BaristaCore.Tests/ /p:CollectCoverage=true /p:CoverletOutputFormat=\"cobertura,opencover\" /p:Exclude=[xunit.*]*
- dotnet test -c $CONFIGURATION -f $FRAMEWORK ./test/BaristaLabs.BaristaCore.Extensions.Tests/ /p:CollectCoverage=true /p:CoverletOutputFormat=\"cobertura,opencover\" /p:Exclude=[xunit.*]*