Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Trying to run PHPUnit tests on Gitlab CI container.
- But getting this error:
- doctrine/data-fixtures suggests installing doctrine/mongodb-odm (For loading MongoDB ODM fixtures)
- doctrine/data-fixtures suggests installing doctrine/phpcr-odm (For loading PHPCR ODM fixtures)
- nette/utils suggests installing ext-gd (to use Image)
- nette/bootstrap suggests installing tracy/tracy (to use Configurator::enableTracy())
- sebastian/global-state suggests installing ext-uopz (*)
- phpunit/phpunit-mock-objects suggests installing ext-soap (*)
- phpunit/php-code-coverage suggests installing ext-xdebug (^2.5.5)
- phpunit/phpunit suggests installing ext-xdebug (*)
- phpunit/phpunit suggests installing phpunit/php-invoker (^1.1)
- Generating autoload files
- ocramius/package-versions: Generating version class...
- ocramius/package-versions: ...done generating version class
- > Incenteev\ParameterHandler\ScriptHandler::buildParameters
- Creating the "app/config/parameters.yml" file
- > Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache
- 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
- 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
- Script Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache handling the symfony-scripts event terminated with an exception
- [RuntimeException]
- An error occurred when executing the "'cache:clear --no-warmup'" command:
- 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
- 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
- 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>]...
- Makefile:26: recipe for target 'composer_testing' failed
- make: *** [composer_testing] Error 1
- ERROR: Job failed: exit code 2
- As you can see there is no error on generating autoload file.
- This is `.gitlab-ci.yml` file:
- image: covex/php7.1-fpm:1.0
- services:
- - mysql:latest
- variables:
- MYSQL_ROOT_PASSWORD: root
- MYSQL_USER: it
- MYSQL_PASSWORD: secret
- MYSQL_DATABASE: epos
- before_script:
- - apk update && apk add bash git
- - bash .gitlab-ci.sh > /dev/null
- - "cd /builds/user/repository"
- - echo '{"github-oauth":{"github.com":"'"$COMPOSER_GITHUB_TOKEN"'"}}' > ./auth.json
- - make build_for_pipeline
- test:app:
- script:
- - make test
- `build_for_pipeline` just runs this line:
- `php composer.phar install --no-interaction --no-progress --prefer-dist`
- I don't even know where to dig as There is no error in creating autoload.php file during this process.
- Maybe anyone has same problem?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement