Version 1
[yaffs-website] / vendor / drush / drush / appveyor.yml
1 build: false
2 shallow_clone: true
3 platform: 'x86'
4 clone_folder: C:\projects\drush
5 matrix:
6   allow_failures:
7     # Don't record a failure until we have a passing test suite.
8     - UNISH_NO_TIMEOUTS: y
9 branches:
10   only:
11     - master
12     - 8.x
13
14 init:
15   #https://github.com/composer/composer/blob/master/appveyor.yml
16   #- SET ANSICON=121x90 (121x90)
17
18 # Inspired by https://github.com/Codeception/base/blob/master/appveyor.yml and https://github.com/phpmd/phpmd/blob/master/appveyor.yml
19 install:
20   - cinst -y curl
21   - SET PATH=C:\Program Files\curl;%PATH%
22   #which is only needed by the test suite.
23   - cinst -y which
24   - SET PATH=C:\Program Files\which;%PATH%
25   - git clone -q https://github.com/acquia/DevDesktopCommon.git #For tar, cksum, ...
26   - SET PATH=%APPVEYOR_BUILD_FOLDER%/DevDesktopCommon/bintools-win/msys/bin;%PATH%
27   - SET PATH=C:\Program Files\MySql\MySQL Server 5.7\bin\;%PATH%
28   #Install PHP
29   - cinst -y php
30   - cd c:\tools\php
31   - copy php.ini-production php.ini
32
33   - echo extension_dir=ext >> php.ini
34   - echo extension=php_openssl.dll >> php.ini
35   - echo date.timezone="UTC" >> php.ini
36   - echo variables_order="EGPCS" >> php.ini #Debugging related to https://github.com/drush-ops/drush/pull/646. May be unneeded.
37   - echo mbstring.http_input=pass >> php.ini
38   - echo mbstring.http_output=pass >> php.ini
39   - echo sendmail_path=nul >> php.ini
40   - echo extension=php_mbstring.dll >> php.ini
41   - echo extension=php_curl.dll >> php.ini
42   - echo extension=php_pdo_mysql.dll >> php.ini
43   - echo extension=php_pdo_pgsql.dll >> php.ini
44   - echo extension=php_pdo_sqlite.dll >> php.ini
45   - echo extension=php_pgsql.dll >> php.ini
46   - echo extension=php_gd2.dll >> php.ini
47   - SET PATH=C:\tools\php;%PATH%
48   #Install Composer
49   - cd %APPVEYOR_BUILD_FOLDER%
50   #- appveyor DownloadFile https://getcomposer.org/composer.phar
51   - php -r "readfile('http://getcomposer.org/installer');" | php
52   #Install Drush's dependencies via Composer
53   - php composer.phar -q install --prefer-dist -n
54   - SET PATH=%APPVEYOR_BUILD_FOLDER%;%APPVEYOR_BUILD_FOLDER%/vendor/bin;%PATH%
55   #Create a sandbox for testing.
56   - mkdir c:\drush_temp
57
58 services:
59   - mysql
60
61 test_script:
62   - phpunit --configuration tests %PHPUNIT_ARGS%
63
64 # environment variables
65 environment:
66   global:
67       UNISH_NO_TIMEOUTS: y
68       UNISH_DB_URL: "mysql://root:Password12!@localhost"
69       UNISH_TMP: c:\drush_temp
70
71   matrix:
72   - UNISH_DRUPAL_MAJOR_VERSION: 7
73     PHPUNIT_ARGS: --group=base
74
75   - UNISH_DRUPAL_MAJOR_VERSION: 7
76     PHPUNIT_ARGS: --group=commands
77
78   - UNISH_DRUPAL_MAJOR_VERSION: 7
79     PHPUNIT_ARGS: --group=pm
80
81   - UNISH_DRUPAL_MAJOR_VERSION: 7
82     PHPUNIT_ARGS: --group=quick-drupal
83
84   - UNISH_DRUPAL_MAJOR_VERSION: 7
85     PHPUNIT_ARGS: --exclude-group=base,make,commands,pm,quick-drupal
86
87   - UNISH_DRUPAL_MAJOR_VERSION: 7
88     PHPUNIT_ARGS: --group=make