Skip to content

Latest commit

 

History

History
27 lines (21 loc) · 1.23 KB

README.md

File metadata and controls

27 lines (21 loc) · 1.23 KB

Bitbucket Pipelines PHP 7.4 image

Based on Ubuntu 20.04

Packages installed

  • php7.4-zip, php7.4-xml, php7.4-mbstring, php7.4-curl, php7.4-json, php7.4-imap, php7.4-mysql, php7.4-tokenizer, php7.4-xdebug, php7.4-intl, php7.4-soap, php7.4-pdo, php7.4-cli and php7.4-gd
  • wget, curl, unzip
  • Composer 2
  • Mysql 8 (or 5.7 if you use pyguerder/bitbucket-pipelines-php74:mysql5)
  • Node + Yarn

Sample bitbucket-pipelines.yml

image: pyguerder/bitbucket-pipelines-php74
pipelines:
  default:
    - step:
        script:
          - service mysql start
          - mysql -h localhost -u root -proot -e "CREATE DATABASE test;"
          - composer install --no-interaction --no-progress --prefer-dist
          - ./vendor/phpunit/phpunit/phpunit -v --coverage-text --colors=never --stderr