Я начал процесс использования в Continuous Integration, и я решил на круге.
Пожалуйста, дайте мне знать, если я могу предоставить любую другую информацию, поскольку я потерял ее.
Когда circleci пытается запустить команду phpunit, она возвращает следующую ошибку:
Я потерпел неудачу в решении этой проблемы.
vendor/bin/phpunit PHPUnit 3.7.37 by Sebastian Bergmann. Configuration read from /home/ubuntu/simple/phpunit.xml PHP Fatal error: Class 'Illuminate\View\Environment' not found in /home/ubuntu/simple/vendor/laravel/framework/src/Illuminate/View/ViewServiceProvider.php on line 124 Fatal error: Class 'Illuminate\View\Environment' not found in /home/ubuntu/simple/vendor/laravel/framework/src/Illuminate/View/ViewServiceProvider.php on line 124 vendor/bin/phpunit returned exit code 255
Файл composer.json:
{ "name": "laravel/laravel", "description": "The Laravel Framework.", "keywords": ["framework", "laravel"], "license": "MIT", "require": { "laravel/framework": "4.1.29", "cartalyst/sentry": "2.1.*", "vespakoen/menu": "dev-master", "venturecraft/revisionable": "1.8.*", "dompdf/dompdf" : "0.6.*", "baum/baum": "~1.0", "thujohn/pdf": "dev-master", "yohang/finite": "1.1.x-dev", "pimple/pimple": "2.1.*@dev", "symfony/security": "2.4.x-dev", "maatwebsite/excel": "1.*", "codesleeve/asset-pipeline": "dev-master" }, "repositories": [ { "type": "composer", "url": "http://packages.cartalyst.com" } ], "autoload": { "classmap": [ "app/commands", "app/controllers", "app/models", "app/database/migrations", "app/database/seeds", "app/tests/TestCase.php", "app/lib" ], "psr-0": { "Authority": "app/", "Acme": "app/" } }, "config": { "preferred-install": "dist", "frozennode/administrator": "dev-master" }, "require-dev": { "barryvdh/laravel-debugbar": "1.*", "way/generators": "2.*", "codeception/codeception":"@stable", "zizaco/factory-muff": "dev-master", "zizaco/testcases-laravel": "dev-master", "mockery/mockery": "dev-master", "phpspec/phpspec": "~2.0", "behat/behat": "~2.5.1", "behat/mink": "~1.5.0", "behat/mink-extension": "~1.2.0", "behat/mink-goutte-driver": "~1.0.9", "behat/mink-selenium2-driver": "~1.1.1", "phpunit/phpunit": "3.7.37", "onigoetz/profiler":"dev-master", "benconstable/phpspec-laravel": "~1.0" }, "minimum-stability": "beta" }
Файл circle.yml
machine: timezone: Africa/Johannesburg php: version: 5.4.21 hosts: app.test: 127.0.0.1 test: override: - vendor/bin/phpunit
Вы пытались запустить композитора раньше? Попробуйте поместить это в свой circleci.yml:
dependencies: override: - composer install --prefer-source --no-interaction --no-dev