-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbitbucket-pipelines.yml
37 lines (36 loc) · 1.46 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
29
30
31
32
33
34
35
36
37
# 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.1.1
pipelines:
default:
- step:
caches:
- composer
script:
- apt-get update && apt-get install -y unzip
- curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
- pecl install xdebug && echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > /usr/local/etc/php/conf.d/xdebug.ini
- docker-php-ext-install pdo_mysql
- export SYMFONY_ENV=test
- export API_KEY=1f994c8c-f871-e162-a990-569f4c568f07
- export crmurl=
- export crmpassword=
- export crmusername=
- composer install --no-scripts
- echo "#nothing here" > ./app/config/parameters.yml
- php bin/console doctrine:schema:update --force
- php vendor/phpunit/phpunit/phpunit --coverage-text tests
services:
- mysql
definitions:
services:
mysql:
image: mysql
environment:
MYSQL_DATABASE: ''
MYSQL_RANDOM_ROOT_PASSWORD: 'yes'
MYSQL_USER: 'test_user'
MYSQL_PASSWORD: 'test_user_password'