-
-
Notifications
You must be signed in to change notification settings - Fork 210
/
.appveyor.yml
70 lines (63 loc) · 1.81 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
# Copied from https://github.com/phpmd/phpmd/blob/f1c145e538d7cf8c2d1a45fd8fb723eca64005f4/appveyor.yml
clone_folder: C:\projects\symphonycms
branches:
except:
- gh-pages
# Test against the latest version of this Node.js version
environment:
nodejs_version: "12"
php_version: "7.1.16"
matrix:
- platform: 'x86'
- platform: 'x64'
matrix:
fast_finish: true
# Install scripts. (runs after repo cloning)
install:
# start windows update
- sc config wuauserv start=auto
- net start wuauserv
# Get the latest stable version of Node.js
- ps: Install-Product node $env:nodejs_version
# install modules
- npm install
# install openssl
- cinst -y OpenSSL.Light
- SET PATH=C:\Program Files\OpenSSL;%PATH%
- refreshenv
# install php
- cinst -y php --version %php_version%
- cd c:\tools\php71
- copy php.ini-production php.ini
- echo date.timezone="UTC" >> php.ini
- echo extension_dir=ext >> php.ini
- echo extension=php_openssl.dll >> php.ini
- echo extension=php_pdo_mysql.dll >> php.ini
- echo extension=php_mbstring.dll >> php.ini
- echo extension=php_intl.dll >> php.ini
- echo extension=php_fileinfo.dll >> php.ini
- echo extension=php_curl.dll >> php.ini
- echo extension=php_xsl.dll >> php.ini
- SET PATH=c:\tools\php71;%PATH%
- cd C:\projects\symphonycms
# install composer
- php -r "readfile('https://getcomposer.org/installer');" | php
# install packages
- php composer.phar install --prefer-source --no-interaction -o
# Post-install test scripts.
test_script:
# Output useful info for debugging.
- node --version
- npm --version
- php --version
# run tests
- cd C:\projects\symphonycms
- npm test
# Don't actually build.
build: off
# Fetch all
shallow_clone: false
# Cache deps
cache:
- vendor -> composer.lock
- node_modules -> package-lock.json