-
-
Notifications
You must be signed in to change notification settings - Fork 67
/
.travis.yml.disabled
95 lines (84 loc) · 2.56 KB
/
.travis.yml.disabled
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
89
90
91
92
93
94
95
language: php
addons:
chrome: stable
#addons:
# apt:
# sources:
# - google-chrome
# packages:
# - google-chrome-stable
services:
- mongodb
cache:
directories:
- "$HOME/.composer/cache"
- "$HOME/.npm"
.steps:
- &disable-php-memory-limit |
echo "memory_limit=-1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
- &disable-xdebug |
phpenv config-rm xdebug.ini || echo "xdebug not available"
- &update-pecl-channel |
pecl channel-update pecl.php.net
- &setup-env-variables |
export PATH="$HOME/.composer/vendor/bin:$PATH"
export PHPCMD="php"
export PHPUNIT_OPTS=""
if [[ ${COVERAGE} = yes ]]; then export PHPCMD="phpdbg -qrr"; fi
if [[ ${COVERAGE} = yes ]]; then export PHPUNIT_OPTS="--coverage-clover=build/logs/clover.xml"; fi
- ©-config |
mkdir -p config/autoload
mkdir -p build/behat
mkdir -p build/mails
cp ./etc/travis/autoload/*.* config/autoload
- &install-mongo-extension |
php --ri mongodb || pecl install -f mongodb
phpenv config-add etc/travis/phpenv.ini
- &install-composer-dependencies |
composer install --no-interaction
npm install
- &setup-selenium |
./bin/start-selenium > /dev/null 2>&1 &
sleep 5
composer run serve --timeout=0 > /dev/null 2>&1 &
- &test-phpunit |
$PHPCMD ./vendor/bin/phpunit $PHPUNIT_OPTS
- &test-behat |
./vendor/bin/behat --strict --no-interaction
- &upload-coverage |
composer require php-coveralls/php-coveralls --no-scripts
travis_retry vendor/bin/php-coveralls -vvv
wget https://scrutinizer-ci.com/ocular.phar
travis_retry php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml
- &upload-log-files |
cd $TRAVIS_BUILD_DIR
./vendor/lakion/mink-debug-extension/travis/tools/upload-textfiles build/behat/*.log
./vendor/lakion/mink-debug-extension/travis/tools/upload-textfiles log/*.log
./vendor/lakion/mink-debug-extension/travis/tools/upload-textfiles log/tracy/*.*
IMGUR_CLIENT_ID=bec050c54e1bb52 ./bin/imgur-uploader build/behat/*.png
matrix:
fast_finish: true
allow_failures:
- php: '7.4'
env: COVERAGE=yes
include:
- php: '7.4'
- php: '7.4'
env: COVERAGE=yes
after_script: *upload-coverage
before_install:
- *disable-php-memory-limit
- *disable-xdebug
- *update-pecl-channel
- *setup-env-variables
install:
- *copy-config
- *install-mongo-extension
- *install-composer-dependencies
before_script:
- *setup-selenium
script:
- *test-phpunit
- *test-behat
after_failure:
- *upload-log-files