forked from autofac/Autofac.Extras.Moq
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
57 lines (47 loc) · 1.23 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
language: csharp
solution: Autofac.Extras.Moq.sln
addons:
apt:
packages:
- libunwind8
matrix:
include:
- os: linux
dist: trusty
sudo: required
env: CONFIGURATION=Release
- os: osx
osx_image: xcode9
env: CONFIGURATION=Release
before_install:
# Install OpenSSL
- if test "$TRAVIS_OS_NAME" == "osx"; then
brew install openssl;
brew link --force openssl;
fi
- export DOTNET_INSTALL_DIR="$PWD/.dotnetcli"
- export DOTNET_INSTALL_SCRIPT="https://dot.net/v1/dotnet-install.sh"
# Install .NET CLI
- mkdir $DOTNET_INSTALL_DIR
- curl -L $DOTNET_INSTALL_SCRIPT -o ./dotnet-install.sh
- chmod 777 ./dotnet-install.sh
- ./dotnet-install.sh -c Current -v 2.1.401
# Add dotnet to PATH
- export PATH="$DOTNET_INSTALL_DIR:$PATH"
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
# Restore dependencies
- dotnet restore
# Build projects
- dotnet build -c $CONFIGURATION -f netcoreapp2.1 ./test/Autofac.Extras.Moq.Test
script:
# Run tests
- dotnet test -c $CONFIGURATION -f netcoreapp2.1 ./test/Autofac.Extras.Moq.Test