forked from open-atmos/PySDM
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
41 lines (33 loc) · 999 Bytes
/
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
branches:
only:
- master
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"
}
elseif ($env:platform -Match "x64")
{
$env:PYTHON="C:\Python38-x64\python"
}
- ps: |
iex "$env:PYTHON -m pip install --upgrade pip"
if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }
iex "$env:PYTHON -m pip install pytest"
if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }
# Add-Content requirements.txt "`npywin32>=300"
iex "$env:PYTHON -m pip install -r requirements.txt"
if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }
test_script:
- ps: |
iex "$env:PYTHON -m pytest -We -p no:unraisableexception"
if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }