diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 000000000..58f1dd38c --- /dev/null +++ b/.gitlab-ci.yml @@ -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" diff --git a/gitlab.sh b/gitlab.sh new file mode 100755 index 000000000..d9d9419d2 --- /dev/null +++ b/gitlab.sh @@ -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