-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #54 from serilog/dev
Release 2.2.0
- Loading branch information
Showing
18 changed files
with
411 additions
and
258 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,11 @@ | ||
language: csharp | ||
|
||
#dotnet cli require Ubuntu 14.04 | ||
sudo: required | ||
dist: trusty | ||
|
||
#dotnet cli require OSX 10.10 | ||
osx_image: xcode7.1 | ||
|
||
addons: | ||
apt: | ||
packages: | ||
- gettext | ||
- libcurl4-openssl-dev | ||
- libicu-dev | ||
- libssl-dev | ||
- libunwind8 | ||
- zlib1g | ||
|
||
os: | ||
#- osx | ||
- linux | ||
|
||
env: | ||
matrix: | ||
- CLI_VERSION=1.0.0-preview2-003121 | ||
# - CLI_VERSION=Latest | ||
|
||
matrix: | ||
allow_failures: | ||
- env: CLI_VERSION=Latest | ||
|
||
before_install: | ||
- if test "$TRAVIS_OS_NAME" == "osx"; then brew update; brew install openssl; brew link --force openssl; fi | ||
# Download script to install dotnet cli | ||
- if test "$CLI_OBTAIN_URL" == ""; then export CLI_OBTAIN_URL="https://raw.githubusercontent.com/dotnet/cli/rel/1.0.0-preview2/scripts/obtain/dotnet-install.sh"; fi | ||
- curl -L --create-dirs $CLI_OBTAIN_URL -o ./scripts/obtain/install.sh | ||
- find ./scripts -name "*.sh" -exec chmod +x {} \; | ||
- export DOTNET_INSTALL_DIR="$PWD/.dotnetcli" | ||
# use bash to workaround bug https://github.com/dotnet/cli/issues/1725 | ||
- sudo bash ./scripts/obtain/install.sh --channel "preview" --version "$CLI_VERSION" --install-dir "$DOTNET_INSTALL_DIR" --no-path | ||
# add dotnet to PATH | ||
- export PATH="$DOTNET_INSTALL_DIR:$PATH" | ||
include: | ||
- os: linux # Ubuntu 14.04 | ||
dist: trusty | ||
sudo: required | ||
dotnet: 1.0.4 | ||
|
||
script: | ||
- ./build.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,25 @@ | ||
#!/bin/bash | ||
|
||
# Ensure any exit code exits TravisCI | ||
set -e | ||
set -e | ||
|
||
export DOTNET_INSTALL_DIR="$PWD/.dotnetcli" | ||
DotnetCliVersion=${CLI_VERSION:="1.0.1"} | ||
install_script_url=https://raw.githubusercontent.com/dotnet/cli/rel/1.0.0/scripts/obtain/dotnet-install.sh | ||
curl -sSL $install_script_url | bash /dev/stdin --version "$DotnetCliVersion" --install-dir "$DOTNET_INSTALL_DIR" | ||
export PATH="$DOTNET_INSTALL_DIR:$PATH" | ||
|
||
# See issue https://github.com/NuGet/Home/issues/2163 | ||
ulimit -n 2048 | ||
|
||
dotnet --info | ||
dotnet restore | ||
for path in src/*/project.json; do | ||
dirname="$(dirname "${path}")" | ||
dotnet build ${dirname} | ||
done | ||
|
||
for path in sample/project.json; do | ||
dirname="$(dirname "${path}")" | ||
dotnet build ${dirname} | ||
done | ||
for path in src/**/*.csproj; do | ||
dotnet build -f netstandard1.1 -c Release ${path} | ||
done | ||
|
||
for path in test/*.Tests/*.csproj; do | ||
dotnet test -f netcoreapp1.0 -c Release ${path} | ||
done | ||
|
||
for path in test/Serilog.Sinks.Splunk.Tests/project.json; do | ||
dirname="$(dirname "${path}")" | ||
dotnet build ${dirname} -f netcoreapp1.0 -c Release | ||
dotnet test ${dirname} -f netcoreapp1.0 -c Release | ||
done | ||
dotnet build -f netcoreapp1.0 -c Release sample/Sample/Sample.csproj |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<OutputType>Exe</OutputType> | ||
<TargetFramework>netcoreapp1.0</TargetFramework> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Serilog" Version="2.4.0" /> | ||
<PackageReference Include="Serilog.Sinks.Literate" Version="2.1.0" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\..\src\Serilog.Sinks.Splunk\Serilog.Sinks.Splunk.csproj" /> | ||
</ItemGroup> | ||
|
||
</Project> |
Oops, something went wrong.