forked from open-atmos/PyMPDATA
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathappveyor.yml
More file actions
45 lines (37 loc) · 1.25 KB
/
appveyor.yml
File metadata and controls
45 lines (37 loc) · 1.25 KB
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
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: |
Set-Content -Path "requirements.txt" -Value (get-content -Path "requirements.txt" | Select-String -Pattern 'mpi4py' -NotMatch)
if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }
Remove-Item -Path PyMPDATA_tests/unit_tests/test_mpi.py
if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }
- ps: |
iex "$env:PYTHON -m pip install --upgrade pip"
if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }
iex "$env:PYTHON -m pip install pytest pytest-benchmark"
if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }
iex "$env:PYTHON -m pip install -r requirements.txt"
if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }
test_script:
- ps: |
iex "$env:PYTHON -m pytest"
if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }