-
Notifications
You must be signed in to change notification settings - Fork 2
/
.gitlab-ci.yml
48 lines (45 loc) · 1.5 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
# the following block is needed for the shared Docker-based runner
image: docker:git
variables:
DOCKER_DRIVER: "overlay2" # recommended for docker-in-docker
services:
- docker:dind # enable docker-in-docker
before_script:
- apk add --update bash coreutils tar # install travis depedencies
- git clone --quiet --depth 1 https://github.com/ros-industrial/industrial_ci.git .ci_config
# Build config for gitlab.com
kinetic-gitlab-com:
only:
variables:
- $CI_PROJECT_URL =~ /^https:\/\/gitlab.com.*/
script:
- .ci_config/gitlab.sh
variables:
ROS_DISTRO: "kinetic"
# Build config for repo.ijs.si
kinetic-repo-ijs-si:
only:
variables:
- $CI_PROJECT_URL =~ /^https:\/\/repo.ijs.si.*/
tags:
- reconcell
script:
- .ci_config/gitlab.sh
variables:
ROS_DISTRO: "kinetic"
# Pages config for gitlab.com
pages:
only:
- master
only:
variables:
- $CI_PROJECT_URL =~ /^https:\/\/gitlab.com.*/
variables:
MOUNT_POINT: /builds/$CI_PROJECT_PATH
script:
- echo "Building documentation for branch $CI_COMMIT_REF_NAME of $CI_PROJECT_NAME"
- docker run --rm -v "$MOUNT_POINT:/$CI_PROJECT_NAME" -e CI_PROJECT_NAME=$CI_PROJECT_NAME -e CI_REPOSITORY_URL=/$CI_PROJECT_NAME ros:kinetic-ros-base /$CI_PROJECT_NAME/smacha/doc/build.sh
- docker run --rm -v "$MOUNT_POINT:/$CI_PROJECT_NAME" -e CI_PROJECT_NAME=$CI_PROJECT_NAME -e CI_REPOSITORY_URL=/$CI_PROJECT_NAME ros:kinetic-ros-base /$CI_PROJECT_NAME/smacha_ros/doc/build.sh
artifacts:
paths:
- public