Skip to content

Commit

Permalink
add installing rabbit via choco
Browse files Browse the repository at this point in the history
  • Loading branch information
rustatian committed Jun 14, 2019
1 parent c403281 commit 226ae97
Showing 1 changed file with 1 addition and 21 deletions.
22 changes: 1 addition & 21 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,27 +10,7 @@ environment:
GOFLAGS: -mod=readonly

install:
- ps: Write-Host "Installing RabbitMQ..." -ForegroundColor Cyan

- ECHO Write-Host "Downloading..."
- ps: $exePath = "$($env:USERPROFILE)\rabbitmq-server-3.7.15.exe"
- ps: (New-Object Net.WebClient).DownloadFile('https://github.com/rabbitmq/rabbitmq-server/releases/download/v3.7.15/rabbitmq-server-3.7.15.exe', $exePath)

- ECHO Write-Host "Installing..."
- ps: cmd /c start /wait $exePath /S

- ps: $rabbitPath = 'C:\Program Files (x86)\RabbitMQ Server\rabbitmq-server-3.7.15'

- ECHO Write-Host "Installing service..."
- ps: Start-Process -Wait "$rabbitPath\sbin\rabbitmq-service.bat" "install"

- ECHO Write-Host "Starting service..."
- ps: Start-Process -Wait "$rabbitPath\sbin\rabbitmq-service.bat" "start"

- ps: Get-Service "RabbitMQ"

- ECHO Write-Host "RabbitMQ installed and started" -ForegroundColor Green

- choco install rabbitmq --ignoredependencies -y
- echo %PATH%
- echo %GOPATH%
- set PATH=%GOPATH%\bin;c:\go\bin;%PATH%
Expand Down

0 comments on commit 226ae97

Please sign in to comment.