Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
8 changes: 4 additions & 4 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ indigo:
variables:
ROS_DISTRO: "indigo"

jade:
script: .industrial_ci/gitlab.sh ROS_DISTRO=jade # alternate syntax

kinetic:
script: .industrial_ci/gitlab.sh ROS_DISTRO=kinetic # alternate syntax

melodic:
script: .industrial_ci/gitlab.sh
variables:
ROS_DISTRO: "kinetic"
ROS_DISTRO: "melodic"
PRERELEASE: "true"

# some internal tests
Expand Down
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ env:
- ROS_DISTRO=indigo USE_DEB=false # Checking backup compatibility with UPSTREAM_WORKSPACE
- ROS_DISTRO=indigo ADDITIONAL_DEBS="ros-indigo-opencv3" VERBOSE_OUTPUT='false'
- ROS_DISTRO=indigo ADDITIONAL_DEBS="ros-hydro-opencv3" DEBUG_BASH='true' EXPECT_EXIT_CODE=100 # This should fail (trying from a wrong distro).
- ROS_DISTRO=jade UPSTREAM_WORKSPACE=file ROSINSTALL_FILENAME=.ci.rosinstall # Testing arbitrary file name without ROS_DISTRO suffix. As of 6/3/2016 this fails due to https://github.com/ros-industrial/industrial_core/pull/144#issuecomment-223186764
- ROS_DISTRO=jade APTKEY_STORE_SKS=hkp://ha.pool.sks-keyservers.vet _DO_NOT_FOLD=true # Passing wrong SKS URL as a break test. Should still pass.
- ROS_DISTRO=jade UPSTREAM_WORKSPACE=file ROSINSTALL_FILENAME=.i.do.not.exist EXPECT_EXIT_CODE=1
- ROS_DISTRO=kinetic UPSTREAM_WORKSPACE=file ROSINSTALL_FILENAME=.ci.rosinstall # Testing arbitrary file name without ROS_DISTRO suffix. As of 6/3/2016 this fails due to https://github.com/ros-industrial/industrial_core/pull/144#issuecomment-223186764
- ROS_DISTRO=kinetic APTKEY_STORE_SKS=hkp://ha.pool.sks-keyservers.vet _DO_NOT_FOLD=true # Passing wrong SKS URL as a break test. Should still pass.
- ROS_DISTRO=kinetic UPSTREAM_WORKSPACE=file ROSINSTALL_FILENAME=.i.do.not.exist EXPECT_EXIT_CODE=1
- DOCKER_BASE_IMAGE="ros:kinetic-ros-base" ROS_REPO=ros NOT_TEST_BUILD='true' DEBUG_BASH='true' VERBOSE_OUTPUT='false' DOCKER_COMMIT="img_temp" POST_PROCESS='eval docker image inspect $DOCKER_COMMIT --format="$DOCKER_COMMIT: \"{{.Size}}\" bytes"'
- ROS_DISTRO=kinetic APTKEY_STORE_SKS=hkp://ha.pool.sks-keyservers.vet # Passing wrong SKS URL as a break test. Should still pass.
- ROS_DISTRO=lunar ROS_REPO=ros-shadow-fixed USE_MOCKUP='industrial_ci/mockups/industrial_ci_testpkg'
Expand Down
6 changes: 3 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ Some notable feature:
* Checks if your package builds, installs without issues. If unit/system tests are defined run them. `ROS Prerelease Test <http://wiki.ros.org/bloom/Tutorials/PrereleaseTest>`_ can optionally be run.
* Proven to cover the general requirements of the ROS-based robotics repositories. Easily configurable.
* Users can add custom pre/post processes.
* Covers ROS Indigo, Jade, Kinetic distribution.
* As of January 2017, this repo provides configuration for `Travis CI` only, although it should be easily deployed from other CI services.
* Covers ROS Hydro, Indigo, Jade, Kinetic, Lunar, Melodic distribution.
* This repo provides scripts for `Bitbucket CI`, `Gitlab CI`, and `Travis CI` only, but it can be easily adapted for other CI services.

For a brief overall introduction, you could also check a presentation:

Expand All @@ -40,7 +40,7 @@ For Travis CI
2. Add `.travis.yml` file to your repository root (`complete template <https://github.com/ros-industrial/industrial_ci/blob/master/doc/.travis.yml>`_):

::

language: generic
services:
- docker
Expand Down
10 changes: 5 additions & 5 deletions doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ You can configure the behavior in `CI config <#terminology>`_ in your client rep

Required environment variables:

* `ROS_DISTRO`: Version of ROS in all lower case. E.g.: `indigo` / `jade`. If is is set in the custom Docker (base) image, it might be omitted in the script call.
* `ROS_DISTRO`: Version of ROS in all lower case. E.g.: `indigo`. If is is set in the custom Docker (base) image, it might be omitted in the script call.

Optional environment variables
++++++++++++++++++++++++++++++++
Expand Down Expand Up @@ -576,17 +576,17 @@ Have multiple .rosinstall files per ROS-distro
++++++++++++++++++++++++++++++++++++++++++++++

By adding `.$ROS_DISTRO` suffix to your `$ROSINSTALL_FILENAME` file, you can specify which file to use per your `$ROS_DISTRO`. So the syntax of the file name for this purpose is `$ROSINSTALL_FILENAME.$ROS_DISTRO`.
For example, let's say you want to test multiple distros (indigo, jade) and you have `.travis.rosinstall` and `.travis.rosinstall.jade` files in your repo. You can define the Travis config as:
For example, let's say you want to test multiple distros (indigo, kinetic) and you have `.travis.rosinstall` and `.travis.rosinstall.kinetic` files in your repo. You can define the Travis config as:

::

env:
matrix:

- ROS_DISTRO=indigo UPSTREAM_WORKSPACE=file
- ROS_DISTRO=jade UPSTREAM_WORKSPACE=file
- ROS_DISTRO=kinetic UPSTREAM_WORKSPACE=file

With this config, for indigo default file name `.travis.rosinstall` will be seached and used if found. For jade, the file that consists of the default file name plus `.jade` suffix will be prioritized.
With this config, for indigo default file name `.travis.rosinstall` will be seached and used if found. For kinetic, the file that consists of the default file name plus `.kinetic` suffix will be prioritized.

When `$ROSINSTALL_FILENAME.$ROS_DISTRO` file isn't found, `$ROSINSTALL_FILENAME` will be used for all jobs that define `UPSTREAM_WORKSPACE`.

Expand All @@ -605,9 +605,9 @@ You can specify the OS and its distribution to run the CI job by setting `OS_NAM
By default users don't need to set this and its value will be automatically guessed according to the value of `ROS_DISTRO`. e.g.::

`ROS_DISTRO=indigo` --> `OS_NAME=ubuntu` `OS_CODE_NAME=trusty`
`ROS_DISTRO=jade` --> `OS_NAME=ubuntu` `OS_CODE_NAME=trusty`
`ROS_DISTRO=kinetic` --> `OS_NAME=ubuntu` `OS_CODE_NAME=xenial`
`ROS_DISTRO=lunar` --> `OS_NAME=ubuntu` `OS_CODE_NAME=xenial`
`ROS_DISTRO=melodic` --> `OS_NAME=ubuntu` `OS_CODE_NAME=bionic`

Use non-default Ubuntu distro
+++++++++++++++++++++++++++++
Expand Down
4 changes: 2 additions & 2 deletions industrial_ci/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
<li>Checks if your package builds, installs without issues. If unit/system tests are defined run them. <a href = "http://wiki.ros.org/bloom/Tutorials/PrereleaseTest">ROS Prerelease Test</a> can optionally be run.</li>
<li>Proven to cover the general requirements of the ROS-based robotics repositories. Easily configurable.</li>
<li>Users can add custom pre/post processes.</li>
<li>Covers ROS Indigo, Jade, Kinetic distribution.</li>
<li>As of January 2017, this repo provides configuration for Travis CI only, although it should be easily deployed from other CI services.</li>
<li>Covers ROS Hydro, Indigo, Jade, Kinetic, Lunar, Melodic distribution</li>
<li>This package provides scripts for `Bitbucket CI`, `Gitlab CI`, and `Travis CI` only, but it can be easily adapted for other CI services.</li>
</ul>
</description>
<license>Apache License 2.0</license>
Expand Down