Last week my builds started to fail, and I can't figure out the problem. I've spent a few days on it.
I have pulled the same docker image I am using in my pipeline and ran all the same commands in the pipeline and it works.
I have listed the contents of the directories and CollectionComponent.php does exist.
Pipeline:
image:
name: gcr.io/project-name/image:latest
username: _json_key
password: '$JSON_KEY'
email: pipelines@bitbucket.com
pipelines:
default:
- step:
caches:
- composer
script:
- composer install
- chmod +x ./scripts/pipeline/* ./application/app/Console/cake
- make database
- make test
services:
- database
definitions:
services:
database:
image: mysql:5.5.43
environment:
MYSQL_ROOT_PASSWORD: 'root'
MYSQL_DATABASE: 'password'
`compose install`:
<span>composer install</span>
<span>Do not run Composer as root/super user! See <a href="https://getcomposer.org/root" target="_blank" rel="nofollow noopener noreferrer">https://getcomposer.org/root</a> for details</span>
<span>Loading composer repositories with package information</span>
<span>Installing dependencies (including require-dev) from lock file</span>
<span>Package operations: 70 installs, 0 updates, 0 removals</span>
<span>- Installing composer/installers (v1.4.0): Downloading (connecting...)Downloading (0%) Downloading (15%)Downloading (25%)Downloading (40%)Downloading (55%)Downloading (70%)Downloading (75%)Downloading (85%)Downloading (90%)Downloading (100%)</span>
<span><snip></span>
<span>paragonie/random_compat suggests installing ext-libsodium (Provides a modern crypto API that can be used to generate random bytes.)</span>
<span>illuminate/support suggests installing illuminate/filesystem (Required to use the composer class (5.2.*).)</span>
<span>illuminate/support suggests installing jeremeamia/superclosure (Required to be able to serialize closures (~2.2).)</span>
<span>illuminate/support suggests installing symfony/polyfill-php56 (Required to use the hash_equals function on PHP 5.5 (~1.0).)</span>
<span>illuminate/support suggests installing symfony/var-dumper (Improves the dd function (2.8.*|3.0.*).)</span>
<span>illuminate/database suggests installing doctrine/dbal (Required to rename columns and drop SQLite columns (~2.4).)</span>
<span>illuminate/database suggests installing illuminate/events (Required to use the observers with Eloquent (5.2.*).)</span>
<span>illuminate/database suggests installing illuminate/filesystem (Required to use the migrations (5.2.*).)</span>
<span>illuminate/database suggests installing illuminate/pagination (Required to paginate the result set (5.2.*).)</span>
<span>illuminate/console suggests installing mtdowling/cron-expression (Required to use scheduling component (~1.0).)</span>
<span>illuminate/queue suggests installing aws/aws-sdk-php (Required to use the SQS queue driver (~3.0).)</span>
<span>predis/predis suggests installing ext-phpiredis (Allows faster serialization and deserialization of the Redis protocol)</span>
<span>sentry/sentry suggests installing immobiliare/sentry-php (Fork that fixes support for PHP 5.2)</span>
<span>sentry/sentry suggests installing monolog/monolog (Automatically capture Monolog events as breadcrumbs)</span>
<span>behat/mink suggests installing behat/mink-zombie-driver (fast and JS-enabled headless driver for any app (requires node.js))</span>
<span>symfony/event-dispatcher suggests installing symfony/http-kernel ()</span>
<span>symfony/dependency-injection suggests installing symfony/expression-language (For using expressions in service container configuration)</span>
<span>symfony/dependency-injection suggests installing symfony/proxy-manager-bridge (Generate service proxies to lazy load them)</span>
<span>symfony/class-loader suggests installing symfony/polyfill-apcu (For using ApcClassLoader on HHVM)</span>
<span>behat/behat suggests installing behat/symfony2-extension (for integration with Symfony2 web framework)</span>
<span>behat/behat suggests installing behat/yii-extension (for integration with Yii web framework)</span>
<span>phpunit/php-code-coverage suggests installing ext-xdebug (>=2.0.5)</span>
<span>phpunit/phpunit suggests installing phpunit/php-invoker (~1.1)</span>
<span>Generating autoload files</span>
make test:
#!/bin/bash -e
# Run Unit Tests
${BITBUCKET_CLONE_DIR}/application/app/Console/cake test app AllNonIntegrationTests --stderr --log-junit ${BITBUCKET_CLONE_DIR}/junit.xml
Error:
