Код: Выделить всё
image: php:8.0
pipelines:
branches:
stage:
- step:
name: Install Dependencies
caches:
- composer
- node
script:
- apt-get update && apt-get install -y unzip libpng-dev libjpeg-dev libfreetype6-dev
- docker-php-ext-configure gd --with-freetype --with-jpeg
- docker-php-ext-install gd
- curl -sS https://getcomposer.org/installer | php
- mv composer.phar /usr/local/bin/composer
- composer install --no-scripts
- curl -sL https://deb.nodesource.com/setup_16.x | bash -
- apt-get install -y nodejs
- npm install --legacy-peer-deps
- step:
name: Run Tests
script:
- vendor/bin/phpunit
- step:
name: Build Assets
caches:
- node
script:
- npm run prod
- step:
name: Migrate Database
script:
- php artisan migrate --force
- php artisan key:generate
- php artisan jwt:secret
services:
- mysql
definitions:
services:
mysql:
image: mysql:5.7
caches:
composer: ~/.composer/cache
node: ~/.npm
Код: Выделить всё
bash: vendor/bin/phpunit: No such file or directory
Может ли кто-нибудь мне помочь?
Подробнее здесь: https://stackoverflow.com/questions/786 ... le-or-dire