Commit d89fe63f authored by Tomasz Kucner's avatar Tomasz Kucner

going public

parent 4640e446
stages:
- dev-build
- night-build
- night-build-publish
- release-build
- release-build-publish
###################################################################
# Ubuntu 16.04
ubuntu-xenial-test:
image: ubuntu:xenial
variables:
CI_ROS_DISTRO: kinetic
UBUNTU_DISTRO: xenial
GIT_STRATEGY: clone
before_script:
- echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
......@@ -36,13 +40,14 @@ ubuntu-xenial-test:
- cd $old_dir
- rm -rf /tmp/src
###################################################################
# Ubuntu 16.04 debian package generation
ubuntu-xenial-build-package-nightbuild:
image: ubuntu:xenial
variables:
CI_ROS_DISTRO: kinetic
UBUNTU_DISTRO: xenial
GIT_STRATEGY: clone
before_script:
- echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
......@@ -72,18 +77,60 @@ ubuntu-xenial-build-package-nightbuild:
- mv .build build
when: on_success
# The files which are to be made available in GitLab
# The files which are to be made available in GitLab
artifacts:
paths:
- build/*
###################################################################
# put code to public reposiotry - night build
git-push-public-night-build:
image: ubuntu:xenial
variables:
CI_ROS_DISTRO: kinetic
UBUNTU_DISTRO: xenial
GIT_STRATEGY: clone
stage: night-build-publish
when: on_success
except:
- tags
only:
- branches@iliad/software/graph_map
before_script:
- apt-get update
- apt-get install -f -y > /dev/null
- apt-get install -y git > /dev/null
script:
# Install ssh-agent through openssh-client if not present
- 'which ssh-agent || ( apt-get update -qy && apt-get install openssh-client -qqy )'
# Add the private key to this user
- eval $(ssh-agent -s) && ssh-add <(echo "$SSH_PRIVATE_KEY") && mkdir -p ~/.ssh
# Docker specific settings
- '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
# Config git to avoid first usage questions. Set the identity
- git config --global user.email "gitlab-ci@oru.se" && git config --global user.name "gitlab-ci"
#
# Do Git stuff, for example:
#
- 'git config remote.public.url > /dev/null && echo "git public" || ( git remote add public git@gitsvn-nt.oru.se:software/graph_map_public.git )'
- git push public master
# - git push -u public --tags
###################################################################
# Ubuntu 16.04 debian package generation
ubuntu-xenial-build-package-release:
image: ubuntu:xenial
variables:
CI_ROS_DISTRO: kinetic
UBUNTU_DISTRO: xenial
GIT_STRATEGY: clone
before_script:
- echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
......@@ -98,8 +145,9 @@ ubuntu-xenial-build-package-release:
- apt-get install -q -y python-bloom devscripts debhelper > /dev/null
- apt-get install -f -y > /dev/null
- rosdep update 2> /dev/null
- add_aass_yaml
- rosdep install --from-paths . -i -y -r --rosdistro $CI_ROS_DISTRO 2> /dev/null
- add_ndt_core_yaml
stage: release-build
script:
......@@ -119,4 +167,40 @@ ubuntu-xenial-build-package-release:
artifacts:
paths:
- build/*
###################################################################
# put code to public reposiotry - release build
git-push-public-release-build:
image: ubuntu:xenial
variables:
CI_ROS_DISTRO: kinetic
UBUNTU_DISTRO: xenial
GIT_STRATEGY: clone
stage: release-build-publish
when: on_success
only:
- tags@iliad/software/graph_map
before_script:
- apt-get update
- apt-get install -f -y > /dev/null
- apt-get install -y git > /dev/null
script:
# Install ssh-agent through openssh-client if not present
- 'which ssh-agent || ( apt-get update -qy && apt-get install openssh-client -qqy )'
# Add the private key to this user
- eval $(ssh-agent -s) && ssh-add <(echo "$SSH_PRIVATE_KEY") && mkdir -p ~/.ssh
# Docker specific settings
- '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
# Config git to avoid first usage questions. Set the identity
- git config --global user.email "gitlab-ci@oru.se" && git config --global user.name "gitlab-ci"
#
# Do Git stuff, for example:
#
- ' git config remote.public.url > /dev/null && echo "git public" || ( git remote add public git@gitsvn-nt.oru.se:iliad/software/graph_map_public.git ) '
# - git push -u public --all
- git push public --tags
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment