Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2017
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.06 KB | None | 0 0
  1. Trying to run PHPUnit tests on Gitlab CI container.
  2.  
  3. But getting this error:
  4.  
  5. doctrine/data-fixtures suggests installing doctrine/mongodb-odm (For loading MongoDB ODM fixtures)
  6. doctrine/data-fixtures suggests installing doctrine/phpcr-odm (For loading PHPCR ODM fixtures)
  7. nette/utils suggests installing ext-gd (to use Image)
  8. nette/bootstrap suggests installing tracy/tracy (to use Configurator::enableTracy())
  9. sebastian/global-state suggests installing ext-uopz (*)
  10. phpunit/phpunit-mock-objects suggests installing ext-soap (*)
  11. phpunit/php-code-coverage suggests installing ext-xdebug (^2.5.5)
  12. phpunit/phpunit suggests installing ext-xdebug (*)
  13. phpunit/phpunit suggests installing phpunit/php-invoker (^1.1)
  14. Generating autoload files
  15. ocramius/package-versions: Generating version class...
  16. ocramius/package-versions: ...done generating version class
  17. > Incenteev\ParameterHandler\ScriptHandler::buildParameters
  18. Creating the "app/config/parameters.yml" file
  19. > Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache
  20.  
  21. Warning: require(/builds/user/repository/app/../vendor/autoload.php): failed to open stream: No such file or directory in /builds/user/repository/app/autoload.php on line 7
  22.  
  23. Fatal error: require(): Failed opening required '/builds/user/repository/app/../vendor/autoload.php' (include_path='.:/usr/local/lib/php') in /builds/user/repository/app/autoload.php on line 7
  24. Script Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache handling the symfony-scripts event terminated with an exception
  25.  
  26.  
  27. [RuntimeException]
  28. An error occurred when executing the "'cache:clear --no-warmup'" command:
  29. Warning: require(/builds/user/repository/app/../vendor/autoload.php): failed to open stream: No such file or directory in /builds/user/repository/app/autoload.php on line 7
  30. Fatal error: require(): Failed opening required '/builds/user/repository/app/../vendor/autoload.php' (include_path='.:/usr/local/lib/php') in /builds/user/repository/app/autoload.php on line 7
  31.  
  32.  
  33. install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--no-suggest] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--ignore-platform-reqs] [--] [<packages>]...
  34.  
  35. Makefile:26: recipe for target 'composer_testing' failed
  36. make: *** [composer_testing] Error 1
  37. ERROR: Job failed: exit code 2
  38.  
  39. As you can see there is no error on generating autoload file.
  40.  
  41. This is `.gitlab-ci.yml` file:
  42.  
  43. image: covex/php7.1-fpm:1.0
  44.  
  45. services:
  46. - mysql:latest
  47.  
  48. variables:
  49. MYSQL_ROOT_PASSWORD: root
  50. MYSQL_USER: it
  51. MYSQL_PASSWORD: secret
  52. MYSQL_DATABASE: epos
  53.  
  54. before_script:
  55. - apk update && apk add bash git
  56. - bash .gitlab-ci.sh > /dev/null
  57. - "cd /builds/user/repository"
  58. - echo '{"github-oauth":{"github.com":"'"$COMPOSER_GITHUB_TOKEN"'"}}' > ./auth.json
  59. - make build_for_pipeline
  60.  
  61. test:app:
  62. script:
  63. - make test
  64.  
  65. `build_for_pipeline` just runs this line:
  66.  
  67. `php composer.phar install --no-interaction --no-progress --prefer-dist`
  68.  
  69. I don't even know where to dig as There is no error in creating autoload.php file during this process.
  70. Maybe anyone has same problem?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement