Last active
May 11, 2021 14:25
-
-
Save nasrulhazim/042eb1054a7e3edde95dc4aad3a37d82 to your computer and use it in GitHub Desktop.
Laravel BitBucket Pipeline
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
Laravel requires SQL in most cases and I don't see definition for MySQL here. How are you running the artisan command?
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
References: