Skip to content

Commit 4aa6272

Browse files
authored
Hr/azure3 (#103)
* Add Consul and Redis services to Windows. * Enable Consul and Redis testing
1 parent d1190f5 commit 4aa6272

File tree

1 file changed

+27
-1
lines changed

1 file changed

+27
-1
lines changed

azure-pipelines.yml

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,37 @@ jobs:
44
vmImage: 'vs2017-win2016'
55
steps:
66
- task: PowerShell@2
7+
displayName: 'Setup Consul'
78
inputs:
89
targetType: inline
10+
workingDirectory: $(System.DefaultWorkingDirectory)
11+
script: |
12+
iwr -outf consul.zip https://releases.hashicorp.com/consul/1.4.2/consul_1.4.2_windows_amd64.zip
13+
mkdir consul
14+
Expand-Archive -Path consul.zip -DestinationPath consul
15+
cd consul
16+
sc.exe create "Consul" binPath="$(System.DefaultWorkingDirectory)/consul/consul.exe agent -dev"
17+
sc.exe start "Consul"
18+
- task: PowerShell@2
19+
displayName: 'Setup Redis'
20+
inputs:
21+
targetType: inline
22+
workingDirectory: $(System.DefaultWorkingDirectory)
23+
script: |
24+
iwr -outf redis.zip https://github.com/MicrosoftArchive/redis/releases/download/win-3.0.504/Redis-x64-3.0.504.zip
25+
mkdir redis
26+
Expand-Archive -Path redis.zip -DestinationPath redis
27+
cd redis
28+
./redis-server --service-install
29+
./redis-server --service-start
30+
- task: PowerShell@2
31+
displayName: 'Setup SDK and Test'
32+
inputs:
33+
targetType: inline
34+
workingDirectory: $(System.DefaultWorkingDirectory)
935
script: |
1036
ruby -v
1137
gem install bundler -v 1.17.3
1238
bundle install
1339
mkdir rspec
14-
bundle exec rspec --exclude-pattern "spec/integrations/*,spec/redis_*" --format progress --format RspecJunitFormatter -o ./rspec/rspec.xml spec
40+
bundle exec rspec --exclude-pattern "spec/integrations/dynamodb_feature_store_spec.rb," --format progress --format RspecJunitFormatter -o ./rspec/rspec.xml spec

0 commit comments

Comments
 (0)