Skip to content

Commit 55636bf

Browse files
committed
Improved running tests [win build]
1 parent 1b03cf2 commit 55636bf

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ parser/parser.php7.c
5454
parser/parser.php7.h
5555
parser/parser.php7.out
5656

57-
.php-version
5857
vendor
5958
composer.lock
6059
phpunit.xml

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ cache:
4747
install:
4848
- phpenv config-rm xdebug.ini || true
4949
- bash ./unit-tests/ci/install-travis
50-
- composer --quiet --no-interaction --no-ansi --no-progress --optimize-autoloader --dev --prefer-dist --no-suggest --ignore-platform-reqs
50+
- composer install --quiet --no-interaction --no-ansi --no-progress --optimize-autoloader --dev --prefer-dist --no-suggest --ignore-platform-reqs
5151

5252
before_install:
5353
- if [[ ! -z "${GH_TOKEN}" ]]; then composer config github-oauth.github.com ${GH_TOKEN}; echo "Configured Github token"; fi;

unit-tests/bootstrap.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@
4646

4747
if (file_exists($vendorPath . DIRECTORY_SEPARATOR . 'autoload.php')) {
4848
require $vendorPath . DIRECTORY_SEPARATOR. 'autoload.php';
49+
} else {
50+
fwrite(STDOUT, 'File ' . $vendorPath . DIRECTORY_SEPARATOR. 'autoload.php does not exists. Skip' . PHP_EOL);
4951
}
5052

5153
require_once __DIR__ . DIRECTORY_SEPARATOR . 'functions.php';

0 commit comments

Comments
 (0)