Skip to content

Instantly share code, notes, and snippets.

@nasrulhazim
Last active May 11, 2021 14:25
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save nasrulhazim/042eb1054a7e3edde95dc4aad3a37d82 to your computer and use it in GitHub Desktop.
Save nasrulhazim/042eb1054a7e3edde95dc4aad3a37d82 to your computer and use it in GitHub Desktop.
Laravel BitBucket Pipeline
# This is a sample build configuration for PHP.
# Check our guides at https://confluence.atlassian.com/x/e8YWN for more examples.
# Only use spaces to indent your .yml configuration.
# -----
# You can specify a custom docker image from Docker Hub as your build environment.
image: php:7.2.1-fpm
pipelines:
default:
- step:
caches:
- composer
script:
- apt-get update
- apt-get install zip -y
- apt-get install unzip -y
- apt-get install libzip-dev -y
- apt-get install jpegoptim -y
- apt-get install optipng -y
- apt-get install pngquant -y
- apt-get install gifsicle -y
- apt-get install libgmp3-dev -y
- docker-php-ext-install zip
- docker-php-ext-install gmp
- docker-php-ext-install bcmath
- export APP_ENV=testing
- curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
- composer install
- cp .env.example .env
- php artisan key:generate
- vendor/bin/phpunit
@aftabnaveed
Copy link

Laravel requires SQL in most cases and I don't see definition for MySQL here. How are you running the artisan command?

@BonBonSlick
Copy link

not work functional tests return error 500

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment