-
Notifications
You must be signed in to change notification settings - Fork 0
/
bitbucket-pipelines.yml
24 lines (23 loc) · 1.05 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
# 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:
# Installing first the libraries necessary to configure and install gd
- apt-get update
- apt-get upgrade -y
- apt-get install -y --no-install-recommends libfreetype6-dev libz-dev libpq-dev libjpeg-dev libpng-dev libfreetype6-dev unzip
# Now we can configure and install the extension
- docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/
- docker-php-ext-install -j$(nproc) gd
- docker-php-ext-enable gd
- curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
- composer install
- vendor/bin/phpunit