-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
69 additions
and
2 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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
language: generic | ||
sudo: required | ||
services: | ||
- docker | ||
script: | ||
- export VERSION="$TRAVIS_TAG" | ||
- ./docker-compose.sh -f docker-compose.ci.build.yml up | ||
deploy: | ||
on: | ||
tags: true | ||
all_branches: true | ||
skip_cleanup: true | ||
provider: script | ||
script: ./docker-compose.sh -f docker-compose.ci.publish.yml up |
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
version: '2' | ||
|
||
services: | ||
ci-build: | ||
image: microsoft/dotnet:1.1-sdk | ||
volumes: | ||
- .:/src | ||
working_dir: /src | ||
command: | | ||
/bin/bash -c ' | ||
versionArg=$$([[ ! -z $VERSION ]] && echo "/p:PackageVersion=$VERSION" || echo "" fi) | ||
dotnet restore | ||
dotnet build -c Release $$versionArg | ||
find test/*/*Tests.csproj | xargs dotnet test -c Release --no-build | ||
' |
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,14 @@ | ||
version: '2' | ||
|
||
services: | ||
ci-build: | ||
image: microsoft/dotnet:1.1-sdk | ||
volumes: | ||
- .:/src | ||
working_dir: /src | ||
command: | | ||
/bin/bash -c ' | ||
versionArg=$$([[ ! -z $VERSION ]] && echo "/p:PackageVersion=$VERSION" || echo "" fi) | ||
dotnet pack src/*/Gelf.Extensions.Logging.csproj -c Release --no-build $$versionArg | ||
dotnet nuget push src/*/Gelf.Extensions.Logging.*.nupkg -s "$NUGET_SOURCE" -k "$NUGET_API_KEY" | ||
' |
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,9 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
# Wrap docker-compose and return a non-zero exit code if any containers failed. | ||
|
||
docker-compose "$@" | ||
|
||
exit $(docker-compose -f docker-compose.ci.build.yml ps -q | tr -d '[:space:]' | | ||
xargs docker inspect -f '{{ .State.ExitCode }}' | grep -v 0 | wc -l | tr -d '[:space:]') |
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