forked from wandb/wandb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
37 lines (32 loc) · 1.45 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
# To run an interactive windows session set APPVEYOR_RDP_ENABLED=TRUE in settings or in global env
# below. Then you'll see an RDP url in the appveyor output. Once in open a console and paste the following
# to use the correct python.
# set PATH=C:\\Python36-x64;C:\\Python36-x64\\Scripts;%PATH%
environment:
global:
CMD_IN_ENV: foo
matrix:
- PYTHON: "C:\\Python36-x64"
install:
- set PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%
- python --version
- python -m pip install -U pip
- "pip install -r requirements_windows.txt"
- "pip install -e ."
build: off
test_script:
# Run the project tests and store results in .xml log
- mkdir results
- "pytest --cov=wandb --vcr-record=none --junitxml=results\\pytest.xml tests\\test_cli.py tests\\test_docker.py tests\\test_internal_api.py tests\\test_settings.py"
on_finish:
# Upload test results to AppVeyor
- ps: |
# this uploads nosetests.xml produced in test_script step
$wc = New-Object 'System.Net.WebClient'
$wc.UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\results\pytest.xml))
# Start RDP server
if($env:APPVEYOR_RDP_ENABLED -eq 'TRUE') {
$blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
} else {
echo '----- Remote desktop connection disabled, enable with APPVEYOR_RDP_ENABLED=TRUE -----'
}