forked from kdschlosser/samsungctl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
45 lines (35 loc) · 1.42 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
environment:
DEBUG: 0
matrix:
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
PYTHON: "C:\\Python36"
PYTHON_VERSION: "3.6.x"
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
PYTHON: "C:\\Python27"
PYTHON_VERSION: "2.7.x"
matrix:
fast_finish: true
install:
- ps: if ($env:APPVEYOR_PULL_REQUEST_NUMBER -and $env:APPVEYOR_BUILD_NUMBER -ne ((Invoke-RestMethod `
https://ci.appveyor.com/api/projects/$env:APPVEYOR_ACCOUNT_NAME/$env:APPVEYOR_PROJECT_SLUG/history?recordsNumber=50).builds | `
Where-Object pullRequestId -eq $env:APPVEYOR_PULL_REQUEST_NUMBER)[0].buildNumber) { `
throw "There are newer queued builds for this pull request, failing early." }
- ps: Write-Host "PYTHON_VERSION $env:PYTHON_VERSION"
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
- "python -m pip install --disable-pip-version-check --user --upgrade pip"
# - "python -m pip install nose"
- "python -m pip install --upgrade setuptools"
- "python -m pip install --upgrade pip"
- "python -m pip install flask"
build_script:
- "python setup.py install"
test_script:
# - "nosetests --verbose tests"
- "python ./tests/tests.py -v"
on_finish:
# pause the build execution
- ps: |
if ($Env:DEBUG -eq "1") {
$blockRdp = $true
iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
}