Skip to content

Commit

Permalink
added gitlab script and config
Browse files Browse the repository at this point in the history
  • Loading branch information
mathias-luedtke committed Mar 11, 2017
1 parent c774697 commit e080890
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# the following block is needed for the shared Docker-based runner
image: docker:latest # docker client
variables:
DOCKER_DRIVER: "overlay" # recommended for docker-in-docker, needs overlay kernel module loaded on host
services:
- docker:dind # enable docker-in-docker
before_script:
- apk add --update bash coreutils # install industrial_ci dependencies

indigo:
script: ./gitlab.sh
variables:
ROS_DISTRO: "indigo"
jade:
script: ./gitlab.sh
variables:
ROS_DISTRO: "jade"
PRERELEASE: "true"
PRERELEASE_REPONAME: "std_msgs"
kinetic:
script: ./gitlab.sh
variables:
ROS_DISTRO: "kinetic"
27 changes: 27 additions & 0 deletions gitlab.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#!/bin/bash

# Copyright (c) 2016, Isaac I. Y. Saito
# All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# This file remains as "travis.sh" at the top directory of industrial_ci repository only to keep backward compatibility between version 0.2.2 and the newer.

# 2016/05/18 http://stackoverflow.com/questions/59895/can-a-bash-script-tell-what-directory-its-stored-in
DIR_THIS="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

export TARGET_REPO_PATH=$CI_PROJECT_DIR
export TARGET_REPO_NAME=$CI_PROJECT_NAME
export _DO_NOT_FOLD=true

bash $DIR_THIS/industrial_ci/src/ci_main.sh

0 comments on commit e080890

Please sign in to comment.