forked from cloudify-cosmo/cloudify-agent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
65 lines (51 loc) · 1.84 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
# Do not build feature branch with open Pull Requests
skip_branch_with_pr: true
environment:
TOX_ENV: pywin
choco_cache_location: C:\Temp\choco
rabbitmq_download_url: https://github.com/rabbitmq/rabbitmq-server/releases/download/v3.7.7/rabbitmq-server-3.7.7.exe
rabbitmq_installer_path: C:\Users\appveyor\rabbitmq.exe
matrix:
- PYTHON: C:\Python27
cache:
- "%choco_cache_location%"
- "%rabbitmq_installer_path%"
- C:\Users\appveyor\.tox
install:
#################################
# Installing Inno Setup
#################################
- choco config set cacheLocation %choco_cache_location%
- choco install -y InnoSetup
- set PATH="C:\Program Files (x86)\Inno Setup 5";%PATH%
#################################
# Download and install RabbitMQ
#################################
- echo Downloading Rabbit...
- ps: |
$webclient = New-Object System.Net.WebClient
if (-Not (Test-Path "$env:rabbitmq_installer_path")) {
$webclient.DownloadFile("$env:rabbitmq_download_url", "$env:rabbitmq_installer_path")
} else {
Write-Host "Found" $env:rabbitmq_installer_path "in cache."
}
- echo Installing Rabbit...
- start /B /WAIT %rabbitmq_installer_path% /S
- ps: (Get-Service -Name RabbitMQ).Status
#################################
# Configure python
#################################
- SET PATH=%PYTHON%;%PYTHON%\Scripts;%PATH%
- python --version
- python -c "import struct; print(struct.calcsize('P') * 8)"
- echo Upgrading pip...
- python -m pip install --upgrade pip==9.0.1
- pip --version
build: false # Not a C# project, build stuff at the test step instead.
before_test:
- echo Installing tox
- pip install tox
test_script:
- tox -e %TOX_ENV%
# RDP can be set in Appveyor - look here:
# https://www.appveyor.com/docs/how-to/rdp-to-build-worker/