-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbitbucket-pipelines.yml
27 lines (26 loc) · 1.01 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
image: atlassian/default-image:2
pipelines:
branches:
master:
- step:
name: Mirror to Github
script:
- git remote add github git@github.com:HEPTACOM/HeptacomAmp.git
- git push --force github master
tags:
'*':
- step:
name: Mirror tags to Github
script:
- git remote add github git@github.com:HEPTACOM/HeptacomAmp.git
- git push --force github tag $BITBUCKET_TAG
pull-requests:
'**':
- step:
name: Lint php
image: php:7.2
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
- composer run php-lint