71 строка
1.7 KiB
YAML
71 строка
1.7 KiB
YAML
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
|
|
|