forked from open-atmos/PySDM
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
42 lines (34 loc) · 1.12 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
branches:
only:
- main
environment:
matrix:
- platform: x86
- platform: x64
build: false
skip_tags: true
install:
- echo Installed Pythons
- dir c:\Python*
- ps: |
if ($env:platform -Match "x86")
{
$env:PYTHON="C:\Python38\python"
Set-Content -Path "setup.py" -Value (get-content -Path "setup.py" | Select-String -Pattern 'PyPartMC' -NotMatch)
}
elseif ($env:platform -Match "x64")
{
$env:PYTHON="C:\Python38-x64\python"
}
- ps: |
iex "$env:PYTHON -m pip install pytest pip==21.3.1"
if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }
- ps: |
iex "$env:PYTHON -m pip install --prefer-binary -e .[tests]"
if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }
test_script:
- ps: |
iex "$env:PYTHON -m pytest -We -p no:unraisableexception tests/unit_tests"
if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }
#on_finish:
# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))