-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy path.gitlab-ci.yml
59 lines (55 loc) · 1.27 KB
/
.gitlab-ci.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# Automatic build and test against SugarCRM 7.X
# Push to github on success.
stages:
- test
- build
- publish
phpunit:
stage: test
tags:
- sugarcli
script:
- composer install --quiet -o
- php-5.3 bin/phpunit
- php-5.5 bin/phpunit
- php-5.6 bin/phpunit
- php -dzend_extension=/usr/lib/php5/20100525/xdebug.so bin/phpunit --color=never
phar:
stage: build
tags:
- sugarcli
script:
- composer install --no-dev --quiet -o
- mkdir build
- ulimit -Sn 4096
- php -dphar.readonly=0 bin/box build
artifacts:
expire_in: '1w'
paths:
- build/sugarcli.phar
mirror:
stage: publish
tags:
- sugarcli
only:
- master
script:
- git push [email protected]:inetprocess/sugarcli.git HEAD:master
mirror_tags:
stage: publish
tags:
- sugarcli
only:
- tags
script:
- git push --tags [email protected]:inetprocess/sugarcli.git
gitlab_release:
tags:
- docker
image: inetprocess/gitlab-release:latest
stage: publish
only:
- tags
script:
- cp build/sugarcli.phar build/sugarcli-$CI_BUILD_TAG.phar
- gitlab-release build/sugarcli-$CI_BUILD_TAG.phar