-
Notifications
You must be signed in to change notification settings - Fork 0
/
bitbucket-pipelines.yml
45 lines (39 loc) · 1.25 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
42
43
44
image: atlassian/default-image:2
options:
docker: true
# Increase memory from default 1024 to 3072 mb as otherwise run of
# the pipeline fails with error "Container 'docker' exceeded memory limit"
definitions:
services:
docker:
memory: 7128
pipelines:
custom:
test:
# Prompt for the branch to be checked out if there is no branch we're going to test
# in any of other repos and prompt for the specific test or suite to run, if specific
- variables:
- name: GIT_BRANCH_FALLBACK
default: develop
allowed-values:
- develop
- master
- name: SPECIFIC_TEST_OR_SUITE
- name: PHPSTAN
default: disabled
allowed-values:
- enabled
- disabled
- name: MASTER_TESTS
default: disabled
allowed-values:
- enabled
- disabled
# Clone docker-repo and run all things from there
- step:
size: 2x
script:
- git clone https://$GIT_USER:$GIT_TOKEN@bitbucket.org/mittagqi/docker.git
- cd docker && ./bitbucket/test-script.sh
after-script:
- cd docker && ./bitbucket/test-after-script.sh