-
Notifications
You must be signed in to change notification settings - Fork 166
/
.appveyor.yml
81 lines (72 loc) · 2.59 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
image: Visual Studio 2017
environment:
global:
CIBW_SKIP: cp33-* cp34-* cp35-* cp37-* cp27-win_amd64 cp36-win_amd64
CIBW_TEST_REQUIRES: pytest-cov==2.5.1 codecov subprocess32
CIBW_TEST_COMMAND: cd {project} && pytest --cov -v && coverage combine && codecov && pip uninstall --yes afdko
TWINE_USERNAME: afdko-travis
# Note: TWINE_PASSWORD is set in AppVeyor settings
matrix:
fast_finish: true
# Do not build feature branch with open Pull Requests
skip_branch_with_pr: true
# scripts that run after cloning repository
install:
- pip install flake8 cpplint
# scripts to run before build
before_build:
- flake8 setup.py
- flake8 tests\*.py
- flake8 python\afdko\buildcff2vf.py
- flake8 python\afdko\buildmasterotfs.py
- flake8 python\afdko\checkoutlinesufo.py
- flake8 python\afdko\convertfonttocid.py
- flake8 python\afdko\fdkutils.py
- flake8 python\afdko\makeinstancesufo.py
- flake8 python\afdko\makeotf.py
- flake8 python\afdko\otfpdf.py
- flake8 python\afdko\pdfmetrics.py
- flake8 python\afdko\ttfcomponentizer.py
- flake8 python\afdko\ttxn.py
- flake8 python\afdko\ufotools.py
- cpplint --recursive --quiet c\autohint
- cpplint --recursive --quiet c\detype1
- cpplint --recursive --quiet c\makeotf\makeotf_lib\source
- cpplint --recursive --quiet c\makeotf\makeotf_lib\api
- cpplint --recursive --quiet c\makeotf\makeotf_lib\resource
- cpplint --recursive --quiet c\makeotf\source
- cpplint --recursive --quiet c\mergefonts
- cpplint --recursive --quiet c\public
- cpplint --recursive --quiet c\rotatefont
- cpplint --recursive --quiet c\sfntdiff
- cpplint --recursive --quiet c\sfntedit
- cpplint --recursive --quiet c\spot
- cpplint --recursive --quiet c\tx
- cpplint --recursive --quiet c\type1
# to run your custom scripts instead of automatic MSBuild
build_script:
# our setup.py requires 'wheel', which may not be already installed
- pip install cibuildwheel wheel
- cibuildwheel --output-dir wheelhouse
artifacts:
# archive the generated packages in the ci.appveyor.com build report
- path: wheelhouse\*.whl
name: Wheels
on_success:
# deploy wheels to PyPI on tags
- ps: >-
if ($env:APPVEYOR_REPO_TAG -eq "true") {
Write-Output ("Deploying " + $env:APPVEYOR_REPO_TAG_NAME + " to PyPI...")
python -m pip install twine
python -m twine upload wheelhouse/*.whl
}
deploy:
# deploy wheels to GitHub on tags
provider: GitHub
auth_token:
secure: UyKfsObr/shlpP+0U5Zb3EPvmXt0kyKYu940CFNFdNZ8J7Fu54k415R0UNP78t0j
artifact: Wheels
draft: false
prerelease: false
on:
appveyor_repo_tag: true