forked from ros-industrial/industrial_ci
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
61 lines (48 loc) · 2.22 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
60
61
# The following block is needed for the shared Docker-based runner
# For local runners you might want to enable the overlay driver:
# https://docs.gitlab.com/ce/ci/docker/using_docker_build.html#using-the-overlayfs-driver
image: docker:git # docker and git clients
# The docker runner does not expose /tmp to the docker-in-docker service
# This config ensures that the temp folder is located inside the project directory (e.g. for prerelease tests or SSH agent forwarding)
variables:
TMPDIR: "${CI_PROJECT_DIR}.tmp" #
# enable docker-in-docker
services:
- docker:dind
before_script:
- apk add --update bash coreutils tar # install industrial_ci dependencies
# for regular users: - git clone --quiet --depth 1 https://github.com/ros-industrial/industrial_ci .industrial_ci
- mkdir .industrial_ci && cp -a * .industrial_ci # this is only needed for branch testing of industrial_ci itself
# setup the actual tests
indigo:
script: .industrial_ci/gitlab.sh
variables:
ROS_DISTRO: "indigo"
jade:
script: .industrial_ci/gitlab.sh ROS_DISTRO=jade # alternate syntax
kinetic:
script: .industrial_ci/gitlab.sh
variables:
ROS_DISTRO: "kinetic"
PRERELEASE: "true"
# some internal tests
docker_pull_base:
script:
- docker pull ubuntu:xenial
- docker tag ubuntu:xenial industrial-ci/ubuntu:xenial
- .industrial_ci/gitlab.sh ROS_DISTRO=kinetic DOCKER_BASE_IMAGE="industrial-ci/ubuntu:xenial" EXPECT_EXIT_CODE=1
docker_no_pull_base:
script:
- docker pull ubuntu:xenial
- docker tag ubuntu:xenial industrial-ci/ubuntu:xenial
- .industrial_ci/gitlab.sh ROS_DISTRO=kinetic DOCKER_BASE_IMAGE="industrial-ci/ubuntu:xenial" DOCKER_PULL=false
docker_pull:
script:
- docker pull rosindustrial/ci:kinetic-xenial-shadow-fixed
- docker tag rosindustrial/ci:kinetic-xenial-shadow-fixed industrial-ci/ubuntu:xenial
- .industrial_ci/gitlab.sh ROS_DISTRO=kinetic DOCKER_IMAGE="industrial-ci/ubuntu:xenial" EXPECT_EXIT_CODE=1
docker_no_pull:
script:
- docker pull rosindustrial/ci:kinetic-xenial-shadow-fixed
- docker tag rosindustrial/ci:kinetic-xenial-shadow-fixed industrial-ci/ubuntu:xenial
- .industrial_ci/gitlab.sh ROS_DISTRO=kinetic DOCKER_IMAGE="industrial-ci/ubuntu:xenial" DOCKER_PULL=false