-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitlab-ci.yml
33 lines (30 loc) · 960 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
stages:
- test
- deploy
- post-deploy
test:
stage: test
only:
- tags
- master
artifacts:
name: test-${CI_COMMIT_REF_NAME}.log
untracked: true
when: on_failure
paths:
- test/
script:
- 'composer install'
- 'make test'
doc:
stage: deploy
only:
- tags
- master
script:
- 'composer install'
- 'echo "Destination: $DOC_INSTALL_DESTINATION/"'
- 'test -n "$DOC_INSTALL_DESTINATION"'
- '[ -d "$DOC_INSTALL_DESTINATION/$CI_BUILD_REF_NAME/" ] || mkdir -pv "$DOC_INSTALL_DESTINATION/$CI_BUILD_REF_NAME/"'
- 'make doc'
- 'rsync -r --stats "./doc/doxygen/html/" "$DOC_INSTALL_DESTINATION/$CI_BUILD_REF_NAME/"'