forked from srsolutionsag/UserTakeOver
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitlab-ci.yml
44 lines (39 loc) · 914 Bytes
/
.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
variables:
GIT_SUBMODULE_STRATEGY: recursive
REVIEW_APP_IMAGE: sturai/ilias:latest
REVIEW_APP_DEST: /var/www/html/Customizing/global/plugins/Services/UIComponent/UserInterfaceHook/UserTakeOver
.review_deployment: &review_deployment
stage: review
tags:
- review
except:
- /^release_.*/
when: manual
stages:
- test
- review
test:
stage: test
tags:
- php5
before_script:
# TODO: Install phpunit, etc.
- php --version
script:
# TODO: Run unit tests, etc.
- echo "Running unit tests..."
review:
<<: *review_deployment
environment:
name: review/${CI_BUILD_REF_SLUG}
url: http://${CI_BUILD_REF_SLUG}.${CI_PROJECT_PATH_SLUG}.review.studer-raimann.ch
on_stop: stop_review
script:
- srag-review deploy
stop_review:
<<: *review_deployment
environment:
name: review/${CI_BUILD_REF_SLUG}
action: stop
script:
- srag-review stop