forked from nsubstitute/NSubstitute
-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
70 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
67
68
69
language: generic
addons:
apt:
packages:
- gettext
- libcurl4-openssl-dev
- libicu-dev
- libssl-dev
- libunwind8
- zlib1g
matrix:
include:
- os: linux
dist: trusty # Ubuntu 14.04
sudo: required
env: CONFIGURATION=Debug FRAMEWORK=netcoreapp1.0
- os: linux
dist: trusty
sudo: required
env: CONFIGURATION=Release FRAMEWORK=netcoreapp1.0
- os: osx
osx_image: xcode7.2 # macOS 10.11
env: CONFIGURATION=Debug FRAMEWORK=netcoreapp1.0
- os: osx
osx_image: xcode7.2
env: CONFIGURATION=Release FRAMEWORK=netcoreapp1.0
before_install:
# Install OpenSSL
- if test "$TRAVIS_OS_NAME" == "osx"; then
brew update;
brew install openssl;
mkdir -p /usr/local/lib;
ln -s /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib /usr/local/lib/;
ln -s /usr/local/opt/openssl/lib/libssl.1.0.0.dylib /usr/local/lib/;
export DOTNET_SDK_URL="https://go.microsoft.com/fwlink/?LinkID=809128";
else
export DOTNET_SDK_URL="https://go.microsoft.com/fwlink/?LinkID=809129";
fi
- export DOTNET_INSTALL_DIR="$PWD/.dotnetcli"
# Install .NET CLI
- mkdir $DOTNET_INSTALL_DIR
- curl -L $DOTNET_SDK_URL -o dotnet_package
- tar -xvzf dotnet_package -C $DOTNET_INSTALL_DIR
# 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
script:
# Run tests
- dotnet test -c $CONFIGURATION -f $FRAMEWORK Source/NSubstitute.Acceptance.Specs