Skip to content

Commit 78362af

Browse files
authored
Merge pull request #12 from merbla/travis-build
Travis Build
2 parents 0d04f1d + ca0fb39 commit 78362af

File tree

3 files changed

+39
-0
lines changed

3 files changed

+39
-0
lines changed

.travis.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
language: csharp
2+
3+
matrix:
4+
include:
5+
- os: linux # Ubuntu 14.04
6+
dist: trusty
7+
sudo: required
8+
dotnet: 1.0.4
9+
group: edge
10+
11+
script:
12+
- ./build.sh

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,4 +143,12 @@ To achieve output identical to version 2 of this sink, specify a formatter and o
143143

144144
This will bypass theming and use Serilog's built-in message template formatting.
145145

146+
### Detailed build status
147+
148+
Branch | AppVeyor | Travis
149+
------------- | ------------- |-------------
150+
dev | [![Build status](https://ci.appveyor.com/api/projects/status/w1w3m1wyk3in1c96/branch/dev?svg=true)](https://ci.appveyor.com/project/serilog/serilog-sinks-console/branch/dev) | [![Build Status](https://travis-ci.org/serilog/serilog-sinks-console.svg?branch=dev)](https://travis-ci.org/serilog/serilog-sinks-console)
151+
master | [![Build status](https://ci.appveyor.com/api/projects/status/w1w3m1wyk3in1c96/branch/master?svg=true)](https://ci.appveyor.com/project/serilog/serilog-sinks-console/branch/master) | [![Build Status](https://travis-ci.org/serilog/serilog-sinks-console.svg?branch=master)](https://travis-ci.org/serilog/serilog-sinks-console)
152+
153+
146154
_Copyright © 2017 Serilog Contributors - Provided under the [Apache License, Version 2.0](http://apache.org/licenses/LICENSE-2.0.html)._

build.sh

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/bin/bash
2+
3+
set -e
4+
dotnet --info
5+
dotnet restore
6+
7+
for path in src/**/*.csproj; do
8+
dotnet build -f netstandard1.3 -c Release ${path}
9+
dotnet build -f netcoreapp1.1 -c Release ${path}
10+
done
11+
12+
for path in test/*.Tests/*.csproj; do
13+
dotnet test -f netcoreapp1.1 -c Release ${path}
14+
done
15+
16+
for path in sample/ConsoleDemo/*.csproj; do
17+
dotnet build -f netcoreapp1.1 -c Release ${path}
18+
dotnet run -f netcoreapp1.1 --project ${path}
19+
done

0 commit comments

Comments
 (0)