forked from dotnetcore/EasyCaching
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
79 lines (63 loc) · 2.38 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
67
68
69
70
71
72
73
74
75
76
77
78
79
version: 1.0.{build}
image:
- Ubuntu1804
- Visual Studio 2017
configuration: Release
clone_depth: 50
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
for:
-
matrix:
only:
- image: Visual Studio 2017
clone_folder: C:\projects\easycaching\
install:
- ps: cd c:\projects\easycaching\tools\RedisConfigs\3.0.503\
- ps: .\redis-server.exe --service-install --service-name "redis-6379" "..\Basic\master-6379.conf"
- ps: .\redis-server.exe --service-install --service-name "redis-6380" "..\Basic\master-6380.conf"
- ps: .\redis-server.exe --service-install --service-name "redis-6388" "..\Basic\master-6388.conf"
- ps: net start redis-6379
- ps: net start redis-6380
- ps: net start redis-6388
- ps: new-service –Name memcached1 –DisplayName memcached1 –BinaryPathName “c:\projects\easycaching\tools\memcached\memcached.exe -d runservice -m 64 -c 2048 -p 11211” –StartupType Automatic
- ps: new-service –Name memcached2 –DisplayName memcached2 –BinaryPathName “c:\projects\easycaching\tools\memcached\memcached.exe -d runservice -m 64 -c 2048 -p 11212” –StartupType Automatic
- ps: net start memcached1
- ps: net start memcached2
- ps: cd c:\projects\easycaching
before_build:
- ps: dotnet restore
build_script:
- ps: dotnet build -c Release
test_script:
- ps: dotnet test -c Release --no-build .\test\EasyCaching.UnitTests\EasyCaching.UnitTests.csproj
-
matrix:
only:
- image: Ubuntu1804
clone_folder: /home/appveyor/projects/easycaching
services:
- redis
install:
#- sh: sudo apt-get install libevent libevent-deve
- sh: redis-server /home/appveyor/projects/easycaching/tools/RedisConfigs/Basic/master-6388.conf
- sh: redis-server /home/appveyor/projects/easycaching/tools/RedisConfigs/Basic/master-6380.conf
- sh: sudo apt-get install memcached
- sh: sudo memcached -p 11211 -u root -m 64m -d
- sh: sudo memcached -p 11212 -u root -m 64m -d
before_build:
- sh: dotnet restore
build_script:
- sh: dotnet build -c Release
test_script:
- sh: dotnet test -c Release --no-build ./test/EasyCaching.UnitTests/EasyCaching.UnitTests.csproj