From e791ad297800789a39208195ccb852d93872f67b Mon Sep 17 00:00:00 2001 From: Matthew Erbs Date: Wed, 21 Jun 2017 17:03:55 +1000 Subject: [PATCH 1/3] Travis config and build file. --- .travis.yml | 11 +++++++++++ README.md | 8 ++++++++ build.sh | 19 +++++++++++++++++++ 3 files changed, 38 insertions(+) create mode 100644 .travis.yml create mode 100644 build.sh diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..ba8d764 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,11 @@ +language: csharp + +matrix: + include: + - os: linux # Ubuntu 14.04 + dist: trusty + sudo: required + dotnet: 1.0.4 + +script: + - ./build.sh \ No newline at end of file diff --git a/README.md b/README.md index 4721a40..debeda4 100644 --- a/README.md +++ b/README.md @@ -143,4 +143,12 @@ To achieve output identical to version 2 of this sink, specify a formatter and o This will bypass theming and use Serilog's built-in message template formatting. +### Detailed build status + +Branch | AppVeyor | Travis +------------- | ------------- |------------- +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) +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) + + _Copyright © 2017 Serilog Contributors - Provided under the [Apache License, Version 2.0](http://apache.org/licenses/LICENSE-2.0.html)._ diff --git a/build.sh b/build.sh new file mode 100644 index 0000000..b2dc450 --- /dev/null +++ b/build.sh @@ -0,0 +1,19 @@ +#!/bin/bash + +set -e +dotnet --info +dotnet restore + +for path in src/**/*.csproj; do + dotnet build -f netstandard1.3 -c Release ${path} + dotnet build -f netcoreapp1.1 -c Release ${path} +done + +for path in test/*.Tests/*.csproj; do + dotnet test -f netcoreapp1.1 -c Release ${path} +done + +for path in sample/ConsoleDemo/*.csproj; do + dotnet build -f netcoreapp1.1 -c Release ${path} + dotnet run -f netcoreapp1.1 --project ${path} +done From b463a7fd0fe236f13a6d32089baa4bb69ea05010 Mon Sep 17 00:00:00 2001 From: Matthew Erbs Date: Wed, 21 Jun 2017 17:11:43 +1000 Subject: [PATCH 2/3] Added execute permissions on build.sh. --- build.sh | 0 1 file changed, 0 insertions(+), 0 deletions(-) mode change 100644 => 100755 build.sh diff --git a/build.sh b/build.sh old mode 100644 new mode 100755 From ca0fb39083b9699e31bca1c70923c0634b3b87b9 Mon Sep 17 00:00:00 2001 From: Matthew Erbs Date: Wed, 21 Jun 2017 17:13:13 +1000 Subject: [PATCH 3/3] Added required changes from Travis-CI * https://blog.travis-ci.com/2017-06-19-trusty-updates-2017-Q2 --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index ba8d764..10b9e57 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,6 +6,7 @@ matrix: dist: trusty sudo: required dotnet: 1.0.4 + group: edge script: - ./build.sh \ No newline at end of file