Skip to content

Commit

Permalink
Fix Travis config after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
theofidry committed Nov 2, 2018
1 parent e06b0c7 commit 1e621e2
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions .travis.yml
Expand Up @@ -23,8 +23,6 @@ before_install:
- if [[ $coverage = 1 ]]; then wget https://github.com/satooshi/php-coveralls/releases/download/v2.0.0/php-coveralls.phar; fi
- if [[ $lint = 1 ]]; then wget https://github.com/FriendsOfPHP/PHP-CS-Fixer/releases/download/v2.10.0/php-cs-fixer.phar; fi
- if [[ $lint = 1 ]]; then composer global require --dev 'phpstan/phpstan:^0.10'; fi
- if [[ ! $deps && $TRAVIS_PHP_VERSION = "7.2" ]]; then curl -LSs https://box-project.github.io/box2/installer.php | php; fi;
- if [[ $lint = 1 ]]; then composer global require --dev 'phpstan/phpstan:^0.8'; fi
- wget -O box.phar https://github.com/humbug/box/releases/download/3.1.3/box.phar
- export BOX_BIN=$(pwd)/box.phar

Expand All @@ -36,19 +34,6 @@ install:
script:
- if [[ $coverage = 1 ]]; then phpdbg -qrr phpunit.phar --coverage-clover build/logs/clover.xml; else php phpunit.phar; fi
- if [[ $lint = 1 ]]; then php php-cs-fixer.phar fix --dry-run --diff --no-ansi; fi
- if [[ $lint = 1 ]]; then phpstan analyse -l5 --ansi -c phpstan.neon src; fi
- |
if [[ ! $deps && $TRAVIS_PHP_VERSION = "7.2" ]]; then
composer install --no-dev --prefer-dist --classmap-authoritative --no-progress --no-suggest --ansi;
~/.composer/vendor/bin/php-scoper add-prefix --output-dir=build/schema-generator;
cp composer.json build/schema-generator/
composer --working-dir=build/schema-generator dump-autoload --classmap-authoritative --no-dev;
php -d phar.readonly=0 box.phar build;
php schema.phar generate-types tmp/ tests/e2e/schema.yml;
diff tests/e2e/src/AppBundle/Entity/Person.php tmp/AppBundle/Entity/Person.php;
diff tests/e2e/src/AppBundle/Entity/PostalAddress.php tmp/AppBundle/Entity/PostalAddress.php;
diff tests/e2e/src/AppBundle/Entity/Thing.php tmp/AppBundle/Entity/Thing.php;
fi;
- if [[ $lint = 1 ]]; then phpstan analyse -l5 --ansi src; fi
- if [[ ! $deps && $TRAVIS_PHP_VERSION = "7.2" ]]; then bin/compile fi;

Expand Down

0 comments on commit 1e621e2

Please sign in to comment.