forked from kalyabin/comitka
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
51 lines (51 loc) · 2.03 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
build: false
shallow_clone: true
platform:
- x86
cache:
- c:\tools\php
- '%LOCALAPPDATA%\Composer\cache'
services:
- mysql
init:
- SET PATH=C:\Program Files\MySql\MySQL Server 5.7\bin\;%PATH%
- SET PATH=c:\tools\php;%PATH%
- SET PHP=1
- SET COMPOSER_NO_INTERACTION=1
- SET ANSICON=121x90 (121x90)
install:
- IF EXIST c:\tools\php (SET PHP=0)
- IF %PHP%==1 cinst -y OpenSSL.Light
- SET PATH=C:\Program Files\OpenSSL;%PATH%
- cinst -y curl
- SET PATH=C:\Program Files\curl;%PATH%
- IF %PHP%==1 cinst -y php
- cd c:\tools\php
- IF %PHP%==1 copy php.ini-production php.ini /Y
- 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_mbstring.dll >> php.ini
- IF %PHP%==1 echo extension=php_curl.dll >> php.ini
- IF %PHP%==1 echo extension=php_fileinfo.dll >> php.ini
- IF %PHP%==1 echo extension=php_pdo_mysql.dll >> php.ini
- cd %APPVEYOR_BUILD_FOLDER%
- appveyor DownloadFile https://getcomposer.org/composer.phar
- php composer.phar config -g github-oauth.github.com %GITHUB_PUBLIC_TOKEN%
- php composer.phar global require "fxp/composer-asset-plugin:~1.2.0" --no-interaction --no-progress --no-ansi --quiet
- php composer.phar global require "codeception/codeception:~2.2" --no-interaction --no-progress --no-ansi --quiet
- php composer.phar update --no-interaction --prefer-dist --no-progress --no-ansi --quiet
before_test:
- mysql -uroot -pPassword12! -e "CREATE DATABASE comitka_tests"
- cd %APPVEYOR_BUILD_FOLDER%\app\tests
- copy /Y codeception.yml.dist codeception.yml
- cd %APPVEYOR_BUILD_FOLDER%\app\tests\codeception\bin
- yii.bat migrate --interactive=0
- cd %APPVEYOR_BUILD_FOLDER%
- php vendor/kalyabin/yii2-git-view/tests/create_repository.php
- php vendor/kalyabin/yii2-hg-view/tests/create_repository.php
- git --version
- hg --version
- php --version
test_script:
- vendor/bin/codecept run unit --config=app/tests/codeception.yml --debug --steps