Skip to content

Commit be73c09

Browse files
committed
Update appveyor config
1 parent 33a218b commit be73c09

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ language: php
33
php:
44
- 7.2
55
- 7.1
6-
- 7.0
76

87
cache:
98
directories:

appveyor.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# Based on igbinary and php-ast's appveyor config.
2-
# This tests against the latest stable minor version of PHP 7 (Currently 7.1)
32
# The project name is the same as the build id used, e.g. https://www.appveyor.com/docs/environment-variables/
43

54
version: '{branch}.{build}'
@@ -25,19 +24,24 @@ build_script:
2524
2625
cd C:\projects\php
2726
28-
appveyor DownloadFile http://windows.php.net/downloads/releases/archives/php-7.1.9-nts-Win32-VC14-x86.zip
27+
SET PHP_ZIP_BASENAME=php-7.1.33-nts-Win32-VC14-x86.zip
2928
30-
7z x -y php-7.1.9-nts-Win32-VC14-x86.zip
29+
SET PHP_AST_VERSION=0.1.6
30+
SET AST_ZIP_BASENAME=php_ast-%PHP_AST_VERSION%-7.1-nts-vc14-x86.zip
31+
32+
curl -fsS https://windows.php.net/downloads/releases/archives/%PHP_ZIP_BASENAME% -o %PHP_ZIP_BASENAME% || curl -fsS https://windows.php.net/downloads/releases/%PHP_ZIP_BASENAME% -o %PHP_ZIP_BASENAME%
33+
34+
7z x -y %PHP_ZIP_BASENAME
3135
3236
del /Q *.zip
3337
3438
cd C:\projects\php\ext
3539
3640
git clone --depth=1 --branch=master https://github.com/nikic/php-ast C:\projects\php-src\ext\ast
3741
38-
appveyor DownloadFile http://windows.php.net/downloads/pecl/releases/ast/0.1.6/php_ast-0.1.6-7.1-nts-vc14-x86.zip
42+
curl -fsS https://windows.php.net/downloads/pecl/releases/ast/%PHP_AST_VERSION%/%AST_ZIP_BASENAME% -o %AST_ZIP_BASENAME%
3943
40-
7z x php_ast-0.1.6-7.1-nts-vc14-x86.zip php_ast.dll -y >nul
44+
7z x %AST_ZIP_BASENAME% php_ast.dll -y >nul
4145
4246
cd C:\projects\php
4347

0 commit comments

Comments
 (0)