我是Gitlab CI/CD的新手。
因此,我一直在遵循this来创建一个可用的cicd,并且我的yml文件在cicd上工作得很好。但是我想为php版本创建一些测试,但是我现在遇到了一个错误。
Running with gitlab-runner 10.8.0 (079aad9e)
on test_cicd runner fe9d0c92
Using Docker executor with image php:7.1 ...
Pulling docker image php:7.1 ...
Using docker image sha256:########## for php:7.1 ...
Running on runner-fe9d0c92-project-19-concurrent-0 via j317456.servers.jiffybox.net...
Fetching changes...
HEAD is now at 9b50afd edit job name
From http://134.119.30.114:10080/Toughblue/wordpress
9b50afd..bebb7da php_test -> origin/php_test
Checking out bebb7da2 as php_test...
Skipping Git submodules setup
$ bash ci/docker_install.sh > /dev/null
+ apt-get update -yqq
+ apt-get install git -yqq
debconf: delaying package configuration, since apt-utils is not installed
+ curl --location --output /usr/local/bin/phpunit https://phar.phpunit.de/phpunit.phar
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 161 100 161 0 0 475 0 --:--:-- --:--:-- --:--:-- 476
100 2721k 100 2721k 0 0 4392k 0 --:--:-- --:--:-- --:--:-- 4392k
+ chmod +x /usr/local/bin/phpunit
+ docker-php-ext-install pdo_mysql
$ phpunit --configuration phpunit_myapp.xml
Could not read "phpunit_myapp.xml".
ERROR: Job failed: exit code 1当我运行流水线或更新时,我得到了这个错误..首先想到的是phpunit_myapp.xml在哪里,因为我没有创建它。我找不到一些东西来解释如果我必须创建一个文件,那么文件应该是什么以及应该放在哪里,或者甚至是如何创建的。所以我想得到一些关于如何解决这个问题的帮助。
欢迎任何给我指明正确方向的帮助。
发布于 2018-07-26 20:08:32
phpunit,但您需要使用参数有关更多信息,请访问https://phpunit.readthedocs.io/en/7.1/configuration.html。
https://stackoverflow.com/questions/51536345
复制相似问题