-
Notifications
You must be signed in to change notification settings - Fork 1
/
appveyor.yml
66 lines (65 loc) · 2.12 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
image:
- Visual Studio 2022
environment:
matrix:
- nodejs_version: '20'
install:
- ps: Install-Product node $env:nodejs_version
- set LIB=C:\OpenSSL-Win64\lib;%LIB%
- set INCLUDE=C:\OpenSSL-Win64\include;%INCLUDE%
- set CI=true
# - npm install --global npm@latest
- set PATH=%APPDATA%\npm;C:\Python38;C:\Python38\Scripts;%PATH%
- npm install
- python -m pip install --upgrade pip setuptools
- pip install tox cryptography requests ruff # common packages
- set PATH=C:\Program Files\curl;%PATH%
- setx PATH "%PATH%"
- ps: Set-Service wuauserv -StartupType Manual
- cinst -y php --version 8.1.12 --allow-empty-checksums
- cinst composer -i -y
# - php -i | findstr "php.ini"
- cd c:\tools\php81
- copy php.ini-production php.ini
- echo date.timezone="UTC" >> php.ini
- echo extension_dir=ext >> php.ini
- echo extension=php_curl.dll >> php.ini
- echo extension=php_mbstring.dll >> php.ini
- echo extension=php_gmp.dll >> php.ini
- echo extension=php_openssl.dll >> php.ini
- cd %APPVEYOR_BUILD_FOLDER%
- refreshenv
- composer install
matrix:
fast_finish: true
build: off
clone_depth: 1
test_script:
- refreshenv
- node --version
- npm --version
- python --version
- pip --version
- php --version
- bash build.sh
cache:
- '%APPDATA%\npm-cache'
- '%LOCALAPPDATA%\pip\Cache'
- '%LOCALAPPDATA%\Composer\files -> composer.lock'
# - C:\ProgramData\chocolatey\bin
# - C:\ProgramData\chocolatey\lib
# - C:\tools\php81
- .cache
after_build:
# Remove old or huge cache files to hopefully not exceed the 1GB cache limit.
#
# If the cache limit is reached, the cache will not be updated (of not even
# created in the first run). So this is a trade of between keeping the cache
# current and having a cache at all.
# NB: This is done only `on_success` since the cache in uploaded only on
# success anyway.
- C:\cygwin\bin\find "%LOCALAPPDATA%\pip" -type f -mtime +360 -delete
- C:\cygwin\bin\find "%LOCALAPPDATA%\pip" -type f -size +10M -delete
- C:\cygwin\bin\find "%LOCALAPPDATA%\pip" -empty -delete
# Show size of cache
- C:\cygwin\bin\du -hs "%LOCALAPPDATA%\pip\Cache"