[TASK] Add appveyor configuration 50/47450/3
authorSusanne Moog <typo3@susannemoog.de>
Thu, 31 Mar 2016 07:20:20 +0000 (09:20 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Thu, 31 Mar 2016 09:10:45 +0000 (11:10 +0200)
Appveyor is a CI server running on windows. Similar to the travis
configuration a yaml based configuration is needed.

Change-Id: Ia4572dad2ee434fb0756721a0b6052897f4f6aaa
Resolves: #75328
Releases: master
Reviewed-on: https://review.typo3.org/47450
Reviewed-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Tested-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
.appveyor.yml [new file with mode: 0644]

diff --git a/.appveyor.yml b/.appveyor.yml
new file mode 100644 (file)
index 0000000..389c94d
--- /dev/null
@@ -0,0 +1,55 @@
+build: false
+shallow_clone: true
+platform:
+  - x64
+clone_folder: C:\projects\typotest
+clone_depth: 10
+
+init:
+    - SET PATH=C:\Program Files\OpenSSL;c:\tools\php;C:\Program Files\MySql\MySQL Server 5.6\bin\;%PATH%
+    - SET COMPOSER_NO_INTERACTION=1
+    - SET PHP=1
+
+environment:
+  TYPO3_PATH_WEB: C:\projects\typotest
+  typo3DatabaseName: "foo"
+  typo3DatabaseUsername: "root"
+  typo3DatabasePassword: "Password12!"
+  typo3DatabaseHost: "127.0.0.1"
+
+cache:
+  - '%LOCALAPPDATA%\Composer\files'
+  - c:\tools\php -> appveyor.yml
+
+install:
+  - IF EXIST c:\tools\php (SET PHP=0)
+  - IF %PHP%==1 cinst -y OpenSSL.Light
+  - IF %PHP%==1 cinst -y php
+  - cd c:\tools\php
+  - IF %PHP%==1 copy php.ini-production php.ini
+  - IF %PHP%==1 echo date.timezone="UTC" >> php.ini
+  - IF %PHP%==1 echo extension_dir=ext >> php.ini
+  - IF %PHP%==1 echo extension=php_openssl.dll >> php.ini
+  - IF %PHP%==1 echo extension=php_fileinfo.dll >> php.ini
+  - IF %PHP%==1 echo extension=php_mbstring.dll >> php.ini
+  - IF %PHP%==1 echo extension=php_mysqli.dll >> php.ini
+  - IF %PHP%==1 echo memory_limit = 512M >> php.ini
+  - cd C:\projects\typotest
+  - php -r "readfile('http://getcomposer.org/installer');" | php
+  - php composer.phar install --prefer-dist -q --no-interaction
+
+services:
+  - mysql
+
+test_script:
+  - cd C:\projects\typotest
+  - bin\phpunit.bat -c typo3/sysext/core/Build/UnitTests.xml
+  - bin\phpunit.bat -c typo3/sysext/core/Build/FunctionalTests.xml
+
+notifications:
+  - provider: Slack
+    incoming_webhook:
+      secure: jzaGHo22fMjVqnSmJyDtj4BNOhrFn9lYNhBkTixU8cxDnh7tJIiuXMzlmjZKho0KSyuqw5hOhAd7aygJPlUTOBcUJYBFJNOz4nz/X6YnY1w=
+    on_build_success: false
+    on_build_failure: true
+    on_build_status_changed: true
\ No newline at end of file