-
Notifications
You must be signed in to change notification settings - Fork 27
/
.appveyor.yml
49 lines (49 loc) · 1.64 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
46
47
48
49
clone_depth: 50
cache:
- '%LOCALAPPDATA%\pip\Cache'
environment:
matrix:
- PYTHON: C:\\Python36
PYTHON_VERSION: 3.6
PYTHON_ARCH: 32
- PYTHON: C:\\Python36-x64
PYTHON_VERSION: 3.6
PYTHON_ARCH: 64
- PYTHON: C:\\Python37
PYTHON_VERSION: 3.7
PYTHON_ARCH: 32
- PYTHON: C:\\Python37-x64
PYTHON_VERSION: 3.7
PYTHON_ARCH: 64
- PYTHON: C:\\Python38
PYTHON_VERSION: 3.8
PYTHON_ARCH: 32
- PYTHON: C:\\Python38-x64
PYTHON_VERSION: 3.8
PYTHON_ARCH: 64
init:
- "ECHO %PYTHON% %PYTHON_VERSION% %PYTHON_ARCH%"
- "ECHO \"%APPVEYOR_SCHEDULED_BUILD%\""
- 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) { `
raise "There are newer queued builds for this pull request, skipping build."
} # credits: JuliaLang developers
install:
- SET PATH=%PYTHON%;%PYTHON%\Scripts;%PATH%
- python --version
- python -c "import sys,platform,struct; print(sys.platform, platform.machine(), struct.calcsize('P') * 8, )"
- pip install pipenv
- pipenv install --dev --system
- python setup.py install
build: false
test_script:
- coverage run -m unittest --verbose --buffer tests
- coverage report --show-missing --fail-under 70 --include 'apertium/**'
artifacts:
- path: dist\*
notifications:
- provider: Email
on_build_success: false
on_build_failure: true
on_build_status_changed: true