-
Notifications
You must be signed in to change notification settings - Fork 0
/
bitbucket-pipelines.yml
44 lines (43 loc) · 1.97 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
pipelines:
branches:
master:
- step:
name: Mirror to Github
script:
- git remote add github git@github.com:HEPTACOM/digistore24-api-client.git
- git push --force github master
tags:
'*':
- step:
name: Mirror tags to Github
script:
- git remote add github git@github.com:HEPTACOM/digistore24-api-client.git
- git push --force github tag $BITBUCKET_TAG
pull-requests:
'**':
- step:
name: Generate API client library
image: php:7.2
artifacts:
- jane/**
- vendor/**
script:
- apt-get update && apt-get install -y unzip zlib1g-dev libicu-dev libcurl3-dev g++
- docker-php-ext-install -j$(nproc) intl
- docker-php-ext-install -j$(nproc) curl
- docker-php-ext-install -j$(nproc) fileinfo
- docker-php-ext-install -j$(nproc) json
- docker-php-ext-install -j$(nproc) mbstring
- docker-php-ext-install -j$(nproc) tokenizer
- curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
- composer install
- composer run jane-generate
after-script:
- 'test $BITBUCKET_EXIT_CODE -eq 0 || composer check-platform-reqs'
- step:
name: Were there changes on compilation?
script:
- test $(git diff | wc -l) -eq 0
after-script:
- 'test $BITBUCKET_EXIT_CODE -eq 0 || git diff'