forked from iit-DLSLab/hyq-description_old
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
46 lines (39 loc) · 1.28 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
# External
#include: 'http://server-dev/.amazing-script.yml'
# Within the repository
#include: "/templates/.amazing-script.yml"
stages:
- preamble
- build
- deploy
# WARNING: Remember to change the TAG based on the branch: master -> stable, develop -> latest, any-other-branch -> latest
variables:
TAG: stable
VERSION_BASED_ON_GIT_TAG: "true"
before_script:
- source /root/dls_gitlab_ci/gitlab-script.sh
preamble:
image: server-dev:5000/dls-dev:$TAG
stage: preamble
script:
- source /root/dls_gitlab_ci/gitlab-preamble.sh
artifacts:
paths:
- version
- release
build-and-test:
image: server-dev:5000/dls-dev:$TAG
stage: build
script:
- source /root/dls_gitlab_ci/gitlab-ci.bash
- source /opt/ros/dls-distro/setup.bash
- catkin_make -DCMAKE_BUILD_TYPE=Debug && catkin_make run_tests && catkin_make test
deploy:
image: server-dev:5000/dls-dev:$TAG
stage: deploy
script:
- source /root/dls_gitlab_ci/gitlab-deployment.sh
- curl -X POST -F token=$DLS_DISTRO_TOKEN -F ref=$CI_COMMIT_REF_NAME -F variables[SUBMODULE_COMMIT_MSG]="$CI_COMMIT_MESSAGE" -F variables[SUBMODULE_COMMIT_SHA]=$CI_COMMIT_SHA -F variables[SUBMODULE]=$CI_PROJECT_NAME https://gitlab.advr.iit.it/api/v4/projects/43/trigger/pipeline
only:
- master
- develop