summaryrefslogtreecommitdiffstats
path: root/bitbucket-pipelines.yml
blob: 8045110ac7b30559fc58558c56a55f6fb775231c (plain)
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
image: php:7.1.1

pipelines:
  default:
    - step:
        script:
          - apt-get update && apt-get install -y unzip git
          - curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
          - composer install
          - vendor/bin/phpunit
          - vendor/bin/phpcbf --standard=PSR2 src
          - vendor/bin/phpcs --standard=PSR2 src
  branches: # Pipelines that run automatically on a commit to a branch
    master:
      - step:
          script:
            - apt-get update && apt-get install -y unzip git
            - curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
            - composer install
            - vendor/bin/phpunit
            - vendor/bin/phpcs src --standard=codestandard.xml
  custom:
    master-preparation:
    - step:
        script:
          - apt-get update && apt-get install -y unzip git
          - curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
          - composer install
          - vendor/bin/phpunit
          - vendor/bin/phpcs src --standard=codestandard.xml