From 549d2c20093dcba8b34d4843c5210e0e559d2c20 Mon Sep 17 00:00:00 2001 From: Sajid Ibne Anower Date: Thu, 9 Aug 2018 00:14:15 +1000 Subject: [PATCH 01/23] Add minimal travis config --- .travis.yml | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..f21c8b7b --- /dev/null +++ b/.travis.yml @@ -0,0 +1,4 @@ +install: + - git clone https://github.com/ros-industrial/industrial_ci.git .industrial_ci +script: + - .industrial_ci/travis.sh From 69dd364777c7452451192c1c6ae96602e02aebb6 Mon Sep 17 00:00:00 2001 From: Sajid Ibne Anower Date: Thu, 9 Aug 2018 00:20:41 +1000 Subject: [PATCH 02/23] Add build script --- rover_build.sh | 5 +++++ 1 file changed, 5 insertions(+) create mode 100755 rover_build.sh diff --git a/rover_build.sh b/rover_build.sh new file mode 100755 index 00000000..92d0a3e2 --- /dev/null +++ b/rover_build.sh @@ -0,0 +1,5 @@ +#!/usr/bin/env bash + +cd rover +catkin_make clean +catkin_make -j1 From fadc83d62e9aebf6a39994db333332bd2dfbcb96 Mon Sep 17 00:00:00 2001 From: Sajid Ibne Anower Date: Thu, 9 Aug 2018 00:21:14 +1000 Subject: [PATCH 03/23] Add leap_motion example --- .travis.yml | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index f21c8b7b..2f68488d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,25 @@ +# This config file for Travis CI utilizes ros-industrial/industrial_ci package. +# For more info for the package, see https://github.com/ros-industrial/industrial_ci/blob/master/README.rst +sudo: required +dist: trusty +services: + - docker +language: generic +compiler: + - gcc +notifications: + email: + recipients: + - sajidanower23@gmail.com +env: + matrix: + - ROS_DISTRO="kinetic" ROS_REPOSITORY_PATH=http://packages.ros.org/ros/ubuntu NOT_TEST_INSTALL=true + - ROS_DISTRO="kinetic" ROS_REPOSITORY_PATH=http://packages.ros.org/ros-shadow-fixed/ubuntu NOT_TEST_INSTALL=true + - ROS_DISTRO="kinetic" PRERELEASE=true +matrix: + allow_failures: + - env: ROS_DISTRO="kinetic" PRERELEASE=true install: - - git clone https://github.com/ros-industrial/industrial_ci.git .industrial_ci + - git clone https://github.com/ros-industrial/industrial_ci.git .ci_config script: - - .industrial_ci/travis.sh + - source ./rover_build.sh # Enable this when you have a package-local script From b3e36b7d4011b688b3e97343c7c4c8d6190b765a Mon Sep 17 00:00:00 2001 From: Sajid Ibne Anower Date: Thu, 9 Aug 2018 00:31:15 +1000 Subject: [PATCH 04/23] Tweak --- .travis.yml | 32 +++++++++----------------------- 1 file changed, 9 insertions(+), 23 deletions(-) diff --git a/.travis.yml b/.travis.yml index 2f68488d..865769b3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,25 +1,11 @@ -# This config file for Travis CI utilizes ros-industrial/industrial_ci package. -# For more info for the package, see https://github.com/ros-industrial/industrial_ci/blob/master/README.rst -sudo: required -dist: trusty -services: - - docker -language: generic -compiler: - - gcc -notifications: - email: - recipients: - - sajidanower23@gmail.com +# This config uses industrial_ci (https://github.com/ros-industrial/industrial_ci.git). +# For troubleshooting, see readme (https://github.com/ros-industrial/industrial_ci/blob/master/README.rst) +sudo: required +dist: trusty +language: generic env: - matrix: - - ROS_DISTRO="kinetic" ROS_REPOSITORY_PATH=http://packages.ros.org/ros/ubuntu NOT_TEST_INSTALL=true - - ROS_DISTRO="kinetic" ROS_REPOSITORY_PATH=http://packages.ros.org/ros-shadow-fixed/ubuntu NOT_TEST_INSTALL=true - - ROS_DISTRO="kinetic" PRERELEASE=true -matrix: - allow_failures: - - env: ROS_DISTRO="kinetic" PRERELEASE=true + - ROS_DISTRO="kinetic" install: - - git clone https://github.com/ros-industrial/industrial_ci.git .ci_config -script: - - source ./rover_build.sh # Enable this when you have a package-local script + - git clone --depth 1 https://github.com/ros-industrial/industrial_ci.git .industrial_ci +script: + - .industrial_ci/ci.sh From 78fcd2b6a253acf3a3ff445c495eadd431750580 Mon Sep 17 00:00:00 2001 From: Sajid Ibne Anower Date: Thu, 9 Aug 2018 00:35:25 +1000 Subject: [PATCH 05/23] Run all from rover/ --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 865769b3..dfa12697 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,4 +8,4 @@ env: install: - git clone --depth 1 https://github.com/ros-industrial/industrial_ci.git .industrial_ci script: - - .industrial_ci/ci.sh + - cd rover && .industrial_ci/ci.sh From 8e249185129a16156d96c225342b04dab1c0e790 Mon Sep 17 00:00:00 2001 From: Sajid Ibne Anower Date: Thu, 9 Aug 2018 00:37:05 +1000 Subject: [PATCH 06/23] Tweak --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index dfa12697..7eafd3e9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,4 +8,4 @@ env: install: - git clone --depth 1 https://github.com/ros-industrial/industrial_ci.git .industrial_ci script: - - cd rover && .industrial_ci/ci.sh + - ~/.industrial_ci/ci.sh From c79c9826396d94134c21524922220abc803b9dbe Mon Sep 17 00:00:00 2001 From: Sajid Ibne Anower Date: Thu, 9 Aug 2018 00:40:22 +1000 Subject: [PATCH 07/23] Add debug log --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 7eafd3e9..cb1cc9af 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,4 +8,4 @@ env: install: - git clone --depth 1 https://github.com/ros-industrial/industrial_ci.git .industrial_ci script: - - ~/.industrial_ci/ci.sh + - pwd && ls && .industrial_ci/ci.sh From d4e0c49901e4e59aa8af50c4a3a7d5b2312b9347 Mon Sep 17 00:00:00 2001 From: Sajid Ibne Anower Date: Thu, 9 Aug 2018 00:42:27 +1000 Subject: [PATCH 08/23] Add further debug log --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index cb1cc9af..a43a5006 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,4 +8,4 @@ env: install: - git clone --depth 1 https://github.com/ros-industrial/industrial_ci.git .industrial_ci script: - - pwd && ls && .industrial_ci/ci.sh + - pwd && ls -al && .industrial_ci/ci.sh From d11397e51096c95dd4f8b98f0465ba08c36e8cec Mon Sep 17 00:00:00 2001 From: Sajid Ibne Anower Date: Thu, 9 Aug 2018 00:44:23 +1000 Subject: [PATCH 09/23] Run script from rover dir again --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index a43a5006..a7804583 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,4 +8,4 @@ env: install: - git clone --depth 1 https://github.com/ros-industrial/industrial_ci.git .industrial_ci script: - - pwd && ls -al && .industrial_ci/ci.sh + - cd rover; ../.industrial_ci/ci.sh From dd3056485b17760344ca4a702a76bc1a810cb01e Mon Sep 17 00:00:00 2001 From: Sajid Ibne Anower Date: Sat, 22 Sep 2018 15:15:42 +1000 Subject: [PATCH 10/23] Add script to install ros deps --- scripts/get_ros_deps.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 scripts/get_ros_deps.sh diff --git a/scripts/get_ros_deps.sh b/scripts/get_ros_deps.sh new file mode 100644 index 00000000..966c00b2 --- /dev/null +++ b/scripts/get_ros_deps.sh @@ -0,0 +1,12 @@ +#!/usr/bin/env bash + +mkdir -p ~/ros_deps +cd ~/ros_deps +git clone https://github.com/bluesat/16_04_ros_deps.git src +cd src +git submodule init +git submodule update +cd .. +catkin_make -DGSTREAMER_VERSION_1_x=1 +# echo "source ~/ros_deps/devel/setup.bash" >> ~/.bashrc +source ~/ros_deps/devel/setup.bash From e7a451480c43df7a937aa77710409b603a0ed72c Mon Sep 17 00:00:00 2001 From: Sajid Ibne Anower Date: Sat, 22 Sep 2018 15:16:33 +1000 Subject: [PATCH 11/23] Add comment --- scripts/get_ros_deps.sh | 3 +++ 1 file changed, 3 insertions(+) mode change 100644 => 100755 scripts/get_ros_deps.sh diff --git a/scripts/get_ros_deps.sh b/scripts/get_ros_deps.sh old mode 100644 new mode 100755 index 966c00b2..e9495e9f --- a/scripts/get_ros_deps.sh +++ b/scripts/get_ros_deps.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash +# Script from: +# https://bluesat.atlassian.net/wiki/spaces/OWRT/pages/3211577/Getting+Started+with+Software + mkdir -p ~/ros_deps cd ~/ros_deps git clone https://github.com/bluesat/16_04_ros_deps.git src From 700e0ea119e4437aacd47378245d8dad2917e236 Mon Sep 17 00:00:00 2001 From: Sajid Ibne Anower Date: Sat, 22 Sep 2018 15:20:55 +1000 Subject: [PATCH 12/23] Add debug log --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index a7804583..fafa2559 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,4 +8,4 @@ env: install: - git clone --depth 1 https://github.com/ros-industrial/industrial_ci.git .industrial_ci script: - - cd rover; ../.industrial_ci/ci.sh + - ls; pwd; cd rover; ../.industrial_ci/ci.sh From 7b941a119dee2a94868ee690c67caf09145fe69b Mon Sep 17 00:00:00 2001 From: Sajid Ibne Anower Date: Sat, 22 Sep 2018 15:21:36 +1000 Subject: [PATCH 13/23] Install gazebo --- scripts/get_ros_deps.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/get_ros_deps.sh b/scripts/get_ros_deps.sh index e9495e9f..a235598f 100755 --- a/scripts/get_ros_deps.sh +++ b/scripts/get_ros_deps.sh @@ -13,3 +13,5 @@ cd .. catkin_make -DGSTREAMER_VERSION_1_x=1 # echo "source ~/ros_deps/devel/setup.bash" >> ~/.bashrc source ~/ros_deps/devel/setup.bash + +sudo apt-get install ros-kinetic-gazebo-ros-pkgs ros-kinetic-gazebo-ros-control From ff4e027a09251161dbef5eaf3e43643c53d8ddab Mon Sep 17 00:00:00 2001 From: Sajid Ibne Anower Date: Sat, 22 Sep 2018 15:26:15 +1000 Subject: [PATCH 14/23] Separate travis commands into a script --- .travis.yml | 2 +- scripts/travis_script.sh | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 scripts/travis_script.sh diff --git a/.travis.yml b/.travis.yml index fafa2559..8c1c81d1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,4 +8,4 @@ env: install: - git clone --depth 1 https://github.com/ros-industrial/industrial_ci.git .industrial_ci script: - - ls; pwd; cd rover; ../.industrial_ci/ci.sh + - bash scripts/travis_script.sh diff --git a/scripts/travis_script.sh b/scripts/travis_script.sh new file mode 100644 index 00000000..853665a7 --- /dev/null +++ b/scripts/travis_script.sh @@ -0,0 +1,7 @@ +#!/usr/bin/env bash + +ls +pwd +scripts/get_ros_deps.sh +cd rover +../.industrial_ci/ci.sh From 5ac3060a9a9bf1fc7e049ffbb2292da38962dd34 Mon Sep 17 00:00:00 2001 From: Sajid Ibne Anower Date: Sat, 22 Sep 2018 15:29:11 +1000 Subject: [PATCH 15/23] Tweak' --- .travis.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 8c1c81d1..2c64fc84 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,6 +6,8 @@ language: generic env: - ROS_DISTRO="kinetic" install: - - git clone --depth 1 https://github.com/ros-industrial/industrial_ci.git .industrial_ci + - git clone --depth 1 https://github.com/ros-industrial/industrial_ci.git .industrial_ci + - sudo apt-get install catkin + - bash scripts/get_ros_deps.sh script: - bash scripts/travis_script.sh From c5f435ced8e5e78b071c8036e3435a3bf2b7bc51 Mon Sep 17 00:00:00 2001 From: Sajid Ibne Anower Date: Sat, 22 Sep 2018 15:47:34 +1000 Subject: [PATCH 16/23] Add update for apt-get --- .travis.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 2c64fc84..97a3687f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,8 +6,9 @@ language: generic env: - ROS_DISTRO="kinetic" install: + # - rosdep update - git clone --depth 1 https://github.com/ros-industrial/industrial_ci.git .industrial_ci - - sudo apt-get install catkin + - sudo apt-get update && sudo apt-get install catkin - bash scripts/get_ros_deps.sh script: - bash scripts/travis_script.sh From 8c53c1f7c451d1d8347312556e8860bfd85016c5 Mon Sep 17 00:00:00 2001 From: Sajid Ibne Anower Date: Sat, 22 Sep 2018 15:55:41 +1000 Subject: [PATCH 17/23] Remove catkin install --- .travis.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 97a3687f..7f5095b9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,9 +6,8 @@ language: generic env: - ROS_DISTRO="kinetic" install: - # - rosdep update - git clone --depth 1 https://github.com/ros-industrial/industrial_ci.git .industrial_ci - - sudo apt-get update && sudo apt-get install catkin - bash scripts/get_ros_deps.sh + - rosdep update script: - bash scripts/travis_script.sh From a7874ae7e2391bc77edf4671700ab56f6de9dca6 Mon Sep 17 00:00:00 2001 From: Sajid Ibne Anower Date: Sat, 22 Sep 2018 16:00:53 +1000 Subject: [PATCH 18/23] Add apt-get update --- .travis.yml | 3 ++- scripts/get_ros_deps.sh | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 7f5095b9..768c9d39 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,7 +7,8 @@ env: - ROS_DISTRO="kinetic" install: - git clone --depth 1 https://github.com/ros-industrial/industrial_ci.git .industrial_ci - - bash scripts/get_ros_deps.sh - rosdep update + - sudo apt update + - bash scripts/get_ros_deps.sh script: - bash scripts/travis_script.sh diff --git a/scripts/get_ros_deps.sh b/scripts/get_ros_deps.sh index a235598f..295add65 100755 --- a/scripts/get_ros_deps.sh +++ b/scripts/get_ros_deps.sh @@ -14,4 +14,4 @@ catkin_make -DGSTREAMER_VERSION_1_x=1 # echo "source ~/ros_deps/devel/setup.bash" >> ~/.bashrc source ~/ros_deps/devel/setup.bash -sudo apt-get install ros-kinetic-gazebo-ros-pkgs ros-kinetic-gazebo-ros-control +sudo apt install ros-kinetic-gazebo-ros-pkgs ros-kinetic-gazebo-ros-control From b3553cccd4ab01769ed59e8b1cb15981169c552b Mon Sep 17 00:00:00 2001 From: Sajid Ibne Anower Date: Sat, 22 Sep 2018 16:02:32 +1000 Subject: [PATCH 19/23] Get rid of rosdep update --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 768c9d39..0f047f85 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,8 +7,8 @@ env: - ROS_DISTRO="kinetic" install: - git clone --depth 1 https://github.com/ros-industrial/industrial_ci.git .industrial_ci - - rosdep update - sudo apt update - bash scripts/get_ros_deps.sh + - rosdep update script: - bash scripts/travis_script.sh From 57edfde7586d16ea63585d654a7e791666ead875 Mon Sep 17 00:00:00 2001 From: Sajid Ibne Anower Date: Sat, 22 Sep 2018 16:04:09 +1000 Subject: [PATCH 20/23] Check lsb-release --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 0f047f85..0fa5ed99 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,4 +11,4 @@ install: - bash scripts/get_ros_deps.sh - rosdep update script: - - bash scripts/travis_script.sh + - lsb_release -a; bash scripts/travis_script.sh From cbbfcfe618c98bf78b59bf81ec5e217818e2ad52 Mon Sep 17 00:00:00 2001 From: Sajid Ibne Anower Date: Sat, 22 Sep 2018 16:04:44 +1000 Subject: [PATCH 21/23] Remove gazebo install --- scripts/get_ros_deps.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/get_ros_deps.sh b/scripts/get_ros_deps.sh index 295add65..b0c51554 100755 --- a/scripts/get_ros_deps.sh +++ b/scripts/get_ros_deps.sh @@ -14,4 +14,4 @@ catkin_make -DGSTREAMER_VERSION_1_x=1 # echo "source ~/ros_deps/devel/setup.bash" >> ~/.bashrc source ~/ros_deps/devel/setup.bash -sudo apt install ros-kinetic-gazebo-ros-pkgs ros-kinetic-gazebo-ros-control +# sudo apt install ros-kinetic-gazebo-ros-pkgs ros-kinetic-gazebo-ros-control From 1d757fab259e0fd1f5d438f0866147453cc8032b Mon Sep 17 00:00:00 2001 From: Sajid Ibne Anower Date: Sat, 22 Sep 2018 16:06:57 +1000 Subject: [PATCH 22/23] Add release log --- scripts/get_ros_deps.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/get_ros_deps.sh b/scripts/get_ros_deps.sh index b0c51554..5628185d 100755 --- a/scripts/get_ros_deps.sh +++ b/scripts/get_ros_deps.sh @@ -2,7 +2,7 @@ # Script from: # https://bluesat.atlassian.net/wiki/spaces/OWRT/pages/3211577/Getting+Started+with+Software - +lsb_release -a mkdir -p ~/ros_deps cd ~/ros_deps git clone https://github.com/bluesat/16_04_ros_deps.git src From c879df80c1a5a1c2b2d5518048c467ccc90b3874 Mon Sep 17 00:00:00 2001 From: Sajid Ibne Anower Date: Mon, 21 Jan 2019 13:56:34 +1100 Subject: [PATCH 23/23] Set dist to xenial --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 0fa5ed99..868cba33 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,7 @@ # This config uses industrial_ci (https://github.com/ros-industrial/industrial_ci.git). # For troubleshooting, see readme (https://github.com/ros-industrial/industrial_ci/blob/master/README.rst) sudo: required -dist: trusty +dist: xenial language: generic env: - ROS_DISTRO="kinetic"