-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbitbucket-pipelines.yml
More file actions
28 lines (27 loc) · 947 Bytes
/
Copy pathbitbucket-pipelines.yml
File metadata and controls
28 lines (27 loc) · 947 Bytes
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
# 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
pipelines:
default:
- step:
caches:
- composer
script:
- apt-get update && apt-get install -y unzip libpng-dev curl git libyaml-dev
- pecl install yaml-2.0.0 -y && docker-php-ext-enable yaml
- docker-php-ext-install pdo pdo_mysql gd
- curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
- composer install
- vendor/bin/phpunit
services:
- mysql
definitions:
services:
mysql:
image: mysql:5.7
environment:
MYSQL_DATABASE: FrameworkTest
MYSQL_ROOT_PASSWORD: f10ygs87