-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbitbucket-pipelines.yml
41 lines (39 loc) · 1.3 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
38
39
40
41
image: atlassian/default-image:2
definitions:
steps:
- step: &default-step
caches:
- composer
artifacts:
- .build/**
- vendor/**
- composer.lock
after-script:
- find test-results -type f -name '*.xml' -exec sed -i .bak -e "s|`pwd`/||" {} +
pipelines:
branches:
master:
- step:
name: Mirror to Github
script:
- git remote add github git@github.com:HEPTACOM/HeptacomOpenAuth.git
- git push --force github master
tags:
'*':
- step:
name: Mirror tags to Github
script:
- git remote add github git@github.com:HEPTACOM/HeptacomOpenAuth.git
- git push --force github tag $BITBUCKET_TAG
default:
- step:
<<: *default-step
name: Install
script:
- composer-repository
- make vendor
- step:
<<: *default-step
name: Code style and static code analysis
script:
- make cs