Skip to content

Commit 5a35597

Browse files
authored
Merge pull request #1 from wintoncode/cloud-build
Add travis and appveyor config.
2 parents 2116e4b + 64a9dec commit 5a35597

File tree

2 files changed

+53
-0
lines changed

2 files changed

+53
-0
lines changed

.travis.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
language: csharp
2+
branches:
3+
except:
4+
- /^[0-9]/
5+
env:
6+
global:
7+
- DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
8+
- DOTNET_CLI_TELEMETRY_OPTOUT: 1
9+
matrix:
10+
include:
11+
- os: linux
12+
dotnet: 2.1.301
13+
- os: osx
14+
osx_image: xcode9 # OSX 10.12
15+
dotnet: 2.1.301
16+
before_install:
17+
- ulimit -n 4096
18+
script:
19+
- dotnet restore
20+
- dotnet build --configuration Release
21+
- dotnet test test/Winton.DomainModelling.Abstractions.Tests/ --no-build --configuration Release --framework netcoreapp2.1
22+
notifications:
23+
on_success: always
24+
on_failure: always
25+
on_start: always

appveyor.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
version: '{build}'
2+
environment:
3+
CLI_VERSION: latest
4+
DOTNET_CLI_TELEMETRY_OPTOUT: 1
5+
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
6+
image: Visual Studio 2017
7+
configuration:
8+
- Release
9+
skip_tags: true
10+
before_build:
11+
- dotnet restore
12+
build_script:
13+
- msbuild /p:GetVersion=True /p:WriteVersionInfoToBuildLog=True
14+
test_script:
15+
- dotnet test test/Winton.DomainModelling.Abstractions.Tests/ --no-build --configuration Release
16+
artifacts:
17+
- path: .\**\*.nupkg
18+
name: NuGet
19+
nuget:
20+
disable_publish_on_pr: true
21+
deploy:
22+
- provider: NuGet
23+
api_key:
24+
secure: vrX7uDkbJriNmYo0JBoY5/UZu22Cxx/a/omaF+X824kAMFvNXODTFPqXqT3le8Nu
25+
on:
26+
branch:
27+
- master
28+
- /release\/[0-9]\.[0-9]/

0 commit comments

Comments
 (0)