/
bitbucket-pipelines.yml
28 lines (26 loc) · 1.07 KB
/
bitbucket-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
image: php:7.4-fpm
pipelines:
pull-requests:
'**':
- step:
name: Run tests
services:
- docker
caches:
- composer
- node
script:
- apt-get update
- apt-get install -y unzip libzip-dev libpng-dev zip git
- curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
- docker-php-ext-configure zip
- docker-php-ext-install zip bcmath pcntl gd
- php -r "file_exists('.env') || copy('.env.example', '.env');"
- composer install --no-progress --no-suggest --prefer-dist --no-interaction
- vendor/bin/phpcs --standard=PSR2 -n app
- apt-get update && apt-get install -y curl gnupg gnupg2 && curl -sL https://deb.nodesource.com/setup_10.x | bash - && apt-get install -y nodejs
- php artisan key:generate
- npm install
- npm run dev
- php artisan test --parallel
- vendor/bin/phpstan analyse --memory-limit=512M