Servicios requeridos y paquetes necesarios
- MYSQL
- Redis
- Composer
- Laravel Passport
- Extensión de PHP GD y PHP ZIP
| #Información del Pipeline - Aplicaciones necesarias para ejecutar exitosamente los testing | |
| image: php:7.2-fpm | |
| pipelines: | |
| branches: | |
| dev-ch: | |
| - step: | |
| script: | |
| - apt-get update && apt-get install -y git unzip unzip libzip4 curl libmcrypt-dev default-mysql-client wget zlib1g-dev libpcre3-dev libfreetype6-dev libjpeg62-turbo-dev libmcrypt-dev libpng-dev | |
| - yes | pecl install mcrypt-1.0.1 | |
| - docker-php-ext-install pdo_mysql | |
| - docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ | |
| - docker-php-ext-install gd | |
| - docker-php-ext-install zip | |
| - docker-php-ext-enable zip | |
| - curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer | |
| - php --ini | |
| - composer install | |
| - php -r "copy('.env.pipelines', '.env');" | |
| - php artisan key:generate | |
| - php artisan config:cache | |
| - php artisan migrate --force | |
| - php artisan passport:install --force | |
| - php artisan db:seed --force | |
| - php artisan serve & | |
| - sleep 5 | |
| - ./vendor/bin/phpunit | |
| - wget -q --spider https://forge.laravel.com/servers/xxxxxx/sites/xxxxxx/deploy/http?token=3abcdefg6819212121212121 | |
| services: | |
| - mysql | |
| - redis | |
| definitions: | |
| services: | |
| mysql: | |
| image: mysql:5.7 | |
| environment: | |
| MYSQL_DATABASE: 'homestead' | |
| MYSQL_RANDOM_ROOT_PASSWORD: 'yes' | |
| MYSQL_USER: 'homestead' | |
| MYSQL_PASSWORD: 'secret' | |
| redis: | |
| image: redis |