Skip to content

Commit 1f702ff

Browse files
authored
Merge pull request #21 from merbla/2.0-RTM
2.0 Release
2 parents 6da2ee7 + 101e9a5 commit 1f702ff

File tree

8 files changed

+85
-1668
lines changed

8 files changed

+85
-1668
lines changed

.travis.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
language: csharp
2+
3+
#dotnet cli require Ubuntu 14.04
4+
sudo: required
5+
dist: trusty
6+
7+
#dotnet cli require OSX 10.10
8+
osx_image: xcode7.1
9+
10+
addons:
11+
apt:
12+
packages:
13+
- gettext
14+
- libcurl4-openssl-dev
15+
- libicu-dev
16+
- libssl-dev
17+
- libunwind8
18+
- zlib1g
19+
20+
os:
21+
- osx
22+
- linux
23+
24+
env:
25+
matrix:
26+
- CLI_VERSION=1.0.0-preview2-003121
27+
- CLI_VERSION=Latest
28+
29+
matrix:
30+
allow_failures:
31+
- env: CLI_VERSION=Latest
32+
33+
before_install:
34+
- if test "$TRAVIS_OS_NAME" == "osx"; then brew update; brew install openssl; brew link --force openssl; fi
35+
# Download script to install dotnet cli
36+
- 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
37+
- curl -L --create-dirs $CLI_OBTAIN_URL -o ./scripts/obtain/install.sh
38+
- find ./scripts -name "*.sh" -exec chmod +x {} \;
39+
- export DOTNET_INSTALL_DIR="$PWD/.dotnetcli"
40+
# use bash to workaround bug https://github.com/dotnet/cli/issues/1725
41+
- sudo bash ./scripts/obtain/install.sh --channel "preview" --version "$CLI_VERSION" --install-dir "$DOTNET_INSTALL_DIR" --no-path
42+
# add dotnet to PATH
43+
- export PATH="$DOTNET_INSTALL_DIR:$PATH"
44+
45+
script:
46+
- ./build.sh

Build.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,6 @@ Push-Location src/Serilog.Sinks.Splunk
1111
& dotnet pack -c Release -o ..\..\.\artifacts --version-suffix=$revision
1212
if($LASTEXITCODE -ne 0) { exit 1 }
1313

14+
1415
Pop-Location
1516
Pop-Location

CHANGES.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
##2.0 (RC)
1+
##2.0
22
- Support for DotNet Core
33
- Event Collector Sink targeting core
4-
- TCP/UDP Sinks targeting 4.5
4+
- TCP/UDP Sinks targeting 4.5 *ONLY*
55
- Changed HTTP Client to include URI endpoint to host: "services/collector/event"
6+
- Event Collector changed to use epoch time [#15](https://github.com/serilog/serilog-sinks-splunk/pull/15)
67

78
##1.8
89
- Event Collector changed to use epoch time [#15](https://github.com/serilog/serilog-sinks-splunk/pull/15)

appveyor.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
version: '{build}'
2+
skip_tags: true
23
image: Visual Studio 2015
34
configuration: Release
45
install:
56
- ps: mkdir -Force ".\build\" | Out-Null
6-
- ps: Invoke-WebRequest "https://raw.githubusercontent.com/dotnet/cli/rel/1.0.0/scripts/obtain/dotnet-install.ps1" -OutFile ".\build\installcli.ps1"
7+
- ps: Invoke-WebRequest "https://raw.githubusercontent.com/dotnet/cli/rel/1.0.0-preview2/scripts/obtain/dotnet-install.ps1" -OutFile ".\build\installcli.ps1"
78
- ps: $env:DOTNET_INSTALL_DIR = "$pwd\.dotnetcli"
8-
- ps: '& .\build\installcli.ps1 -InstallDir "$env:DOTNET_INSTALL_DIR" -NoPath'
9+
- ps: '& .\build\installcli.ps1 -InstallDir "$env:DOTNET_INSTALL_DIR" -NoPath -Version 1.0.0-preview2-003121'
910
- ps: $env:Path = "$env:DOTNET_INSTALL_DIR;$env:Path"
1011
build_script:
1112
- ps: ./Build.ps1
@@ -18,4 +19,11 @@ deploy:
1819
secure: nvZ/z+pMS91b3kG4DgfES5AcmwwGoBYQxr9kp4XiJHj25SAlgdIxFx++1N0lFH2x
1920
skip_symbols: true
2021
on:
21-
branch: /^(dev|master)$/
22+
branch: /^(dev|master)$/
23+
- provider: GitHub
24+
auth_token:
25+
secure: ggZTqqV1z0xecDoQbeoy3A7xikShCt9FWZIGp95dG9Fo0p5RAT9oGU0ZekHfUIwk
26+
artifact: /Serilog.*\.nupkg/
27+
tag: v$(appveyor_build_version)
28+
on:
29+
branch: master

build.sh

100644100755
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
dotnet restore
33
for path in src/*/project.json; do
44
dirname="$(dirname "${path}")"
5-
dotnet build ${dirname} -c Release
5+
dotnet build ${dirname}
66
done
77

88
for path in sample/project.json; do
99
dirname="$(dirname "${path}")"
10-
dotnet build ${dirname} -c Release
10+
dotnet build ${dirname}
1111
done

sample/project.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{
2-
"version": "2.0.0-rc-*",
2+
"version": "2.0.0",
33
"buildOptions": {
44
"emitEntryPoint": true
55
},
66
"dependencies": {
77
"Microsoft.NETCore.App": {
88
"type": "platform",
9-
"version": "1.0.0-rc2-3002702"
9+
"version": "1.0.0"
1010
},
1111
"Serilog.Sinks.Splunk": {"target": "project"},
12-
"Serilog.Sinks.Literate": "2.0.0-rc-25"
12+
"Serilog.Sinks.Literate": "2.0.0"
1313
},
1414
"frameworks": {
1515
"netcoreapp1.0": {

src/Serilog.Sinks.Splunk/project.json

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "2.0.0-rc-*",
2+
"version": "2.0.0",
33
"description": "The Splunk Sink for Serilog",
44
"authors": [
55
"Matthew Erbs, Serilog Contributors"
@@ -17,20 +17,31 @@
1717
"iconUrl": "http://serilog.net/images/serilog-sink-nuget.png"
1818
},
1919
"buildOptions": {
20-
"keyFile": "../../assets/Serilog.snk",
20+
2121
"xmlDoc": true
2222
},
2323
"dependencies": {
24-
"Serilog": "2.0.0-rc-556"
24+
"Serilog": "2.0.0"
2525
},
2626
"frameworks": {
27+
"net4.5": {
28+
"buildOptions": {
29+
"define": [ "TCP", "UDP" ]
30+
},
31+
"frameworkAssemblies": {
32+
"System.Net.Http": ""
33+
},
34+
"dependencies": {
35+
"Splunk.Logging.Common": "1.6.0"
36+
}
37+
},
2738
"netstandard1.1": {
2839
"dependencies": {
29-
"System.Collections": "4.0.11-rc2-24027",
30-
"System.Collections.Concurrent": "4.0.12-rc2-24027",
31-
"System.Runtime": "4.1.0-rc2-24027",
32-
"System.Threading": "4.0.11-rc2-24027",
33-
"System.Net.Http": "4.0.1-rc2-24027"
40+
"System.Collections": "4.0.11",
41+
"System.Collections.Concurrent": "4.0.12",
42+
"System.Runtime": "4.1.0",
43+
"System.Threading": "4.0.11",
44+
"System.Net.Http": "4.1.0"
3445
}
3546
}
3647
}

0 commit comments

Comments
 (0)