forked from dotnetcore/EasyCaching
-
Notifications
You must be signed in to change notification settings - Fork 1
/
appveyor.yml
66 lines (52 loc) · 1.94 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
version: 1.0.{build}
image: Visual Studio 2017 Preview
configuration: Release
clone_folder: C:\projects\easycaching\
pull_requests:
do_not_increment_build_number: true
#skip_branch_with_pr: true
skip_commits:
files:
- docs/*
- media/*
- LICENSE
- mkdocs.yml
- README.md
- .travis.yml
- .gitignore
install:
#- ps: Invoke-WebRequest "https://raw.githubusercontent.com/dotnet/cli/master/scripts/obtain/dotnet-install.ps1" -OutFile "dotnet-install.ps1"
#- ps: .\dotnet-install.ps1 --Version 2.1.301
#- ps: dotnet --info
- cmd: >-
cd C:\projects\easycaching\tools\RedisConfigs\3.0.503
redis-server.exe --service-install --service-name "redis-6379" "..\Basic\master-6379.conf"
net start redis-6379
c:\projects\easycaching\tools\memcached\memcached.exe -d install
net start memcached
cd C:\projects\easycaching
before_build:
- cmd: dotnet restore
build:
project: EasyCaching.sln
parallel: true
verbosity: minimal
test_script:
- cmd: >-
dotnet test -c Release --no-build .\test\EasyCaching.UnitTests\EasyCaching.UnitTests.csproj
#before_test:
#- ps: >-
# nuget install coveralls.net -Version 0.7.0 -OutputDirectory tools
# nuget install OpenCover -Version 4.6.519 -OutputDirectory tools
#test_script:
#- ps: tools\OpenCover.4.6.519\tools\OpenCover.Console.exe -target:"dotnet.exe" -targetargs:" test test\EasyCaching.UnitTests\EasyCaching.UnitTests.csproj -c Debug /p:DebugType=full" -register:user -filter:"+[EasyCaching*]* -[EasyCaching*Tests]*" -oldstyle -returntargetcode -output:coverage.xml
#after_test:
#- ps: >-
# if ($env:APPVEYOR_REPO_BRANCH -eq "master" -And -not $env:APPVEYOR_PULL_REQUEST_NUMBER)
# {
# tools\coveralls.net.0.7.0\tools\csmacnz.Coveralls.exe --opencover -i coverage.xml --serviceName appveyor --useRelativePaths
# }
# else
# {
# echo "not master branch...."
# }