forked from drush-ops/drush
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
88 lines (76 loc) · 2.76 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
82
83
84
85
86
87
88
build: false
shallow_clone: true
platform: 'x86'
clone_folder: C:\projects\drush
matrix:
allow_failures:
# Don't record a failure until we have a passing test suite.
- UNISH_NO_TIMEOUTS: y
branches:
only:
- master
- 8.x
init:
#https://github.com/composer/composer/blob/master/appveyor.yml
#- SET ANSICON=121x90 (121x90)
# Inspired by https://github.com/Codeception/base/blob/master/appveyor.yml and https://github.com/phpmd/phpmd/blob/master/appveyor.yml
install:
- cinst -y curl
- SET PATH=C:\Program Files\curl;%PATH%
#which is only needed by the test suite.
- cinst -y which
- SET PATH=C:\Program Files\which;%PATH%
- git clone -q https://github.com/acquia/DevDesktopCommon.git #For tar, cksum, ...
- SET PATH=%APPVEYOR_BUILD_FOLDER%/DevDesktopCommon/bintools-win/msys/bin;%PATH%
- SET PATH=C:\Program Files\MySql\MySQL Server 5.7\bin\;%PATH%
#Install PHP
- cinst -y php
- cd c:\tools\php
- copy php.ini-production php.ini
- echo extension_dir=ext >> php.ini
- echo extension=php_openssl.dll >> php.ini
- echo date.timezone="UTC" >> php.ini
- echo variables_order="EGPCS" >> php.ini #Debugging related to https://github.com/drush-ops/drush/pull/646. May be unneeded.
- echo mbstring.http_input=pass >> php.ini
- echo mbstring.http_output=pass >> php.ini
- echo sendmail_path=nul >> php.ini
- echo extension=php_mbstring.dll >> php.ini
- echo extension=php_curl.dll >> php.ini
- echo extension=php_pdo_mysql.dll >> php.ini
- echo extension=php_pdo_pgsql.dll >> php.ini
- echo extension=php_pdo_sqlite.dll >> php.ini
- echo extension=php_pgsql.dll >> php.ini
- echo extension=php_gd2.dll >> php.ini
- SET PATH=C:\tools\php;%PATH%
#Install Composer
- cd %APPVEYOR_BUILD_FOLDER%
#- appveyor DownloadFile https://getcomposer.org/composer.phar
- php -r "readfile('http://getcomposer.org/installer');" | php
#Install Drush's dependencies via Composer
- php composer.phar -q install --prefer-dist -n
- SET PATH=%APPVEYOR_BUILD_FOLDER%;%APPVEYOR_BUILD_FOLDER%/vendor/bin;%PATH%
#Create a sandbox for testing.
- mkdir c:\drush_temp
services:
- mysql
test_script:
- phpunit --configuration tests %PHPUNIT_ARGS%
# environment variables
environment:
global:
UNISH_NO_TIMEOUTS: y
UNISH_DB_URL: "mysql://root:Password12!@localhost"
UNISH_TMP: c:\drush_temp
matrix:
- UNISH_DRUPAL_MAJOR_VERSION: 7
PHPUNIT_ARGS: --group=base
- UNISH_DRUPAL_MAJOR_VERSION: 7
PHPUNIT_ARGS: --group=commands
- UNISH_DRUPAL_MAJOR_VERSION: 7
PHPUNIT_ARGS: --group=pm
- UNISH_DRUPAL_MAJOR_VERSION: 7
PHPUNIT_ARGS: --group=quick-drupal
- UNISH_DRUPAL_MAJOR_VERSION: 7
PHPUNIT_ARGS: --exclude-group=base,make,commands,pm,quick-drupal
- UNISH_DRUPAL_MAJOR_VERSION: 7
PHPUNIT_ARGS: --group=make