Pillow

Форк
0
/
.appveyor.yml 
100 строк · 3.2 Кб
1
skip_commits:
2
  files:
3
    - ".github/**/*"
4
    - ".gitmodules"
5
    - "docs/**/*"
6
    - "wheels/**/*"
7

8
version: '{build}'
9
clone_folder: c:\pillow
10
init:
11
- ECHO %PYTHON%
12
#- ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
13
# Uncomment previous line to get RDP access during the build.
14

15
environment:
16
  COVERAGE_CORE: sysmon
17
  EXECUTABLE: python.exe
18
  TEST_OPTIONS:
19
  DEPLOY: YES
20
  matrix:
21
  - PYTHON: C:/Python312
22
    ARCHITECTURE: x86
23
    APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
24
  - PYTHON: C:/Python39-x64
25
    ARCHITECTURE: AMD64
26
    APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
27

28

29
install:
30
- '%PYTHON%\%EXECUTABLE% --version'
31
- '%PYTHON%\%EXECUTABLE% -m pip install --upgrade pip'
32
- curl -fsSL -o pillow-test-images.zip https://github.com/python-pillow/test-images/archive/main.zip
33
- 7z x pillow-test-images.zip -oc:\
34
- xcopy /S /Y c:\test-images-main\* c:\pillow\tests\images
35
- curl -fsSL -o nasm-win64.zip https://raw.githubusercontent.com/python-pillow/pillow-depends/main/nasm-2.16.03-win64.zip
36
- 7z x nasm-win64.zip -oc:\
37
- choco install ghostscript --version=10.3.1
38
- path c:\nasm-2.16.03;C:\Program Files\gs\gs10.03.1\bin;%PATH%
39
- cd c:\pillow\winbuild\
40
- ps: |
41
        c:\python39\python.exe c:\pillow\winbuild\build_prepare.py -v --depends=C:\pillow-depends\
42
        c:\pillow\winbuild\build\build_dep_all.cmd
43
        $host.SetShouldExit(0)
44
- path C:\pillow\winbuild\build\bin;%PATH%
45

46
build_script:
47
- cd c:\pillow
48
- winbuild\build\build_env.cmd
49
- '%PYTHON%\%EXECUTABLE% -m pip install -v -C raqm=vendor -C fribidi=vendor .'
50
- '%PYTHON%\%EXECUTABLE% selftest.py --installed'
51

52
test_script:
53
- cd c:\pillow
54
- '%PYTHON%\%EXECUTABLE% -m pip install pytest pytest-cov pytest-timeout defusedxml ipython numpy olefile pyroma'
55
- c:\"Program Files (x86)"\"Windows Kits"\10\Debuggers\x86\gflags.exe /p /enable %PYTHON%\%EXECUTABLE%
56
- '%PYTHON%\%EXECUTABLE% -c "from PIL import Image"'
57
- '%PYTHON%\%EXECUTABLE% -m pytest -vx --cov PIL --cov Tests --cov-report term --cov-report xml Tests'
58
#- '%PYTHON%\%EXECUTABLE% test-installed.py -v -s %TEST_OPTIONS%' TODO TEST_OPTIONS with pytest?
59

60
after_test:
61
- curl -Os https://uploader.codecov.io/latest/windows/codecov.exe
62
- .\codecov.exe --file coverage.xml --name %PYTHON% --flags AppVeyor
63

64
matrix:
65
  fast_finish: true
66

67
cache:
68
- '%LOCALAPPDATA%\pip\Cache'
69

70
artifacts:
71
- path: pillow\*.egg
72
  name: egg
73
- path: pillow\*.whl
74
  name: wheel
75

76
before_deploy:
77
  - cd c:\pillow
78
  - '%PYTHON%\%EXECUTABLE% -m pip wheel -v -C raqm=vendor -C fribidi=vendor .'
79
  - ps: Get-ChildItem .\*.whl | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name }
80

81
deploy:
82
  provider: S3
83
  region: us-west-2
84
  access_key_id: AKIAIRAXC62ZNTVQJMOQ
85
  secret_access_key:
86
    secure: Hwb6klTqtBeMgxAjRoDltiiqpuH8xbwD4UooDzBSiCWXjuFj1lyl4kHgHwTCCGqi
87
  bucket: pillow-nightly
88
  folder: win/$(APPVEYOR_BUILD_NUMBER)/
89
  artifact: /.*egg|wheel/
90
  on:
91
    APPVEYOR_REPO_NAME: python-pillow/Pillow
92
    branch: main
93
    deploy: YES
94

95

96
# Uncomment the following lines to get RDP access after the build/test and block for
97
# up to the timeout limit (~1hr)
98
#
99
#on_finish:
100
#- ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
101

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.