Laravel-CircleCI-在phpunit上失败 [英] Laravel - CircleCI - Fails on phpunit
本文介绍了Laravel-CircleCI-在phpunit上失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经开始使用持续集成的过程,并且已经决定使用circleci.
I have started the process of making use on Continuous Integration and I have decided on circleci.
请让我知道我是否还能提供其他信息,因为我此时迷路了.
Please let me know if I can supply any other information as I am lost at this point.
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文件:
The composer.json file:
{
"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文件
The circle.yml file
machine:
timezone:
Africa/Johannesburg
php:
version: 5.4.21
hosts:
app.test: 127.0.0.1
test:
override:
- vendor/bin/phpunit
推荐答案
您之前尝试过运行作曲家吗?尝试将其放入您的circleci.yml:
Did you try to run composer before? Try to put this in your circleci.yml:
dependencies:
override:
- composer install --prefer-source --no-interaction --no-dev
这篇关于Laravel-CircleCI-在phpunit上失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文