草庐IT

Travis-ci

全部标签

php - 将变量值从库传递到 Controller ,然后在 CI 3.0 中查看

我正在尝试将变量值从库函数传递到Controller,然后查看以获取输出。为此,我的库代码:developers_url.'search';$fields=array("token"=>$this->token);$result=$this->_post_api($fields,$url);$this->log("result");$this->log($result);}privatefunction_post_api(Array$fields,$url){try{$ch=curl_init();curl_setopt($ch,CURLOPT_URL,$url);curl_setop

php - Travis CI 构建 PHP 项目并从 Composer 中提取依赖项,尝试使用 git@ 而不是 https

背景我们有一个PHPproject这与TravisCI配合得很好直到某一点,从那时起就完全停止工作了。该项目无法使用Composer进行构建。详情最后一次成功构建是:thisone最近失败的构建是:thisone,inthebranchNamingCollisions这是thiscommit不断出现的错误是:Failedtoexecutegitclone--mirror'git@github.com:edmondscommerce/Faker.git''/home/travis/.composer/cache/vcs/git-github.com-edmondscommerce-Fak

PHPUnit 在 Travis-CI 上失败但在本地通过

当PHPUnit在我的本地机器上运行良好时,我在Travis-CI上运行时遇到了一些问题。我使用相同的PHP版本和PHPUnit版本。我的代码库位于https://github.com/lncd/OAuth2Travis-CI输出为https://travis-ci.org/lncd/OAuth2从存储库的根目录执行phpunit-cbuild/phpunit.xml在本地工作正常,测试按预期执行。Travis的日志是:$cd~/builds$gitclone--branch=develop--depth=100--quietgit://github.com/lncd/OAuth2.g

php - 使用 Apache 和 PHP 的 Travis CI

如何配置travis-ci在Apache中使用phpenv的php版本?phpenv的README声明每当调用“phpenvglobal”时都会设置~/.phpenv/lib/libphp5.so,但是当我尝试配置apache以将其用作其apxs库时,我得到了这个:Travis输出:/home/travis/build/OpenBuildings/Clippings/.phpenv/lib/libphp5.so:cannotopensharedobjectfile:Nosuchfileordirectory我不认为使用“apt-getinstalllibapache2-mod-php5

Travis CI 上的 PHPUnit "Could not read phpunit.xml"

尝试在TravisCI上运行PHP单元测试时,我遇到了一个奇怪的问题。.travis.ymlsudo:falselanguage:phpphp:-5.4env:-VUFIND_HOME=$PWDVUFIND_LOCAL_DIR=$PWD/localbefore_script:-pearinstallpear/PHP_CodeSniffer-pearchannel-discoverpear.phing.info-pearinstallphing/phing-composerglobalrequirefabpot/php-cs-fixer-exportPATH="$HOME/.compos

php - Gitlab Ci 使用 docker 和 mysql 服务缓慢构建

我正在使用gitlab-ci-multirunner9.3.0和GitLabCommunityEdition9.3.5当我在我的本地虚拟盒子环境中运行我的php-unit测试时,总测试(30)只需要大约:Time:5minutes,Memory:96.00MB在我的gitlab主机上运行同样的测试,一共需要Time:41.68minutes,Memory:97.75MB测试需要mysql并在每个测试上创建数据库和加载夹具。我的DockerFile:FROMtetraweb/php:5.6#InstalladditionalpackagesRUNapt-getclean&&apt-get

php - CI中的ajax jquery分页错误

在codeigniter中的jquery分页中出现错误。ifper_page=5;totalnumber6andtotalpage2butthepaginationlikebelowShowing6to6of6|嗨,friend们,我陷入了这个错误。这显示在每个页面中。请给我一个解决方案来获得正确的分页下面的代码正在使用:$config['base_url']=site_url('settings/view_leave_reason_ajax/');$config['total_rows']=$this->leav->getLvReasonCount();$config['per_pa

php - 在运行 Ubuntu 12.04 的 Travis CI 上使用 APCu

我有一个依赖于APCu(php5-apcu)的Symfony应用程序。服务器在Ubuntu15.04上运行PHP5.6。APCu需要通过Composer作为依赖项,即:"require":{"ext-apc":"~4.0"}效果很好。尝试让应用程序在Travis-CI上运行并不那么顺利,因为它们运行的​​是Ubuntu12.04,它没有php5-apcu包,它会产生:E:Unabletolocatepackagephp5-apcu安装php-apc不满足ext-apcu要求,我不想推广已弃用的软件包。关于如何在TravisCI上设置APCu有什么建议吗?最好不用手动下载包。

php - CI 访问接口(interface)上的属性

我正在使用scrutinizer来分析我的代码。几乎所有内容都已修复,但我似乎无法解决此问题。AccessingidontheinterfaceIlluminate\Contracts\Auth\Authenticatablesuggestthatyoucodeagainstaconcreteimplementation.Howaboutaddinganinstanceofcheck?我看到了问题,因为它是一个不存在的接口(interface),但我的代码工作正常。那我分析代码的时候怎么才能让这段代码通过呢?谢谢编辑在这几行报错(其他一些文件也差不多)$this->tracert->l

php - 将 www 重写为非 www 和 index.php CI

我正在使用CodeIgnter,结果我所有的链接都像base.com/index.php/home/index或www.base.com/index.php/home/索引。如果可能的话,我只想将它们显示为base.com/home/index。我已经尝试查看互联网,从他们两个那里得到了htacces中的重写:RewriteEngineonRewriteCond%{REQUEST_FILENAME}!-fRewriteCond%{REQUEST_FILENAME}!-dRewriteRule^(.*)$index.php/$0[PT,L]RewriteCond%{HTTP_HOST}^