-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Source Upload override and independent stage support (#60)
* Add executable permissions to common_sa_build.sh * Add the ability to override the default list of source files to upload * Reformatting readme * Sourcing common_sa_build to maintain the previous behavior. * Add prepare_sources_to_upload.sh, ros_bootstrap.sh, and small refactor to reduce duplication * Simplify UPLOAD_SOURCES option to only allow enable/disable
- Loading branch information
Showing
7 changed files
with
83 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/bin/bash | ||
# This is a standalone script that is meant to be run from Travis directly, outside of a docker container. | ||
set -xe | ||
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" | ||
|
||
# Bootstrap to get basic ROS dependencies (rosinstall) | ||
ROS_BOOTSTRAP_SCRIPT="${SCRIPT_DIR}/ros_bootstrap.sh" | ||
sudo ROS_VERSION=${ROS_VERSION} "${ROS_BOOTSTRAP_SCRIPT}" | ||
|
||
if [ -z "$WORKSPACES" ]; then | ||
WORKSPACES="robot_ws simulation_ws" | ||
fi | ||
|
||
for WS in ${WORKSPACES} | ||
do | ||
WS_DIR="${TRAVIS_BUILD_DIR}/${WS}" | ||
echo "looking for ${WS}, ${WS_DIR}" | ||
if [ -d "${WS_DIR}" ]; then | ||
echo "WS ${WS_DIR} found, running rosws update" | ||
rosws update -t "${WS_DIR}" | ||
fi | ||
done | ||
|
||
SOURCES_INCLUDES="${WORKSPACES} LICENSE* NOTICE* README* roboMakerSettings.json" | ||
mkdir shared 2>/dev/null | ||
/usr/bin/zip -r shared/sources.zip $SOURCES_INCLUDES | ||
tar cvzf shared/sources.tar.gz $SOURCES_INCLUDES |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash | ||
# Set up ROS APT and install basic dependencies (rosdep, rosinstall). Must have ROS_VERSION set when called. | ||
set -xe | ||
|
||
apt-get update && apt-get install -q -y dirmngr curl gnupg2 lsb-release zip python3-pip python3-apt dpkg | ||
pip3 install -U setuptools | ||
|
||
if [ "${ROS_VERSION}" == "1" ]; then | ||
sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list' | ||
apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654 | ||
apt-get update && apt-get install -y python-rosdep python-rosinstall | ||
elif [ "${ROS_VERSION}" == "2" ]; then | ||
curl -s https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc | apt-key add - | ||
sh -c 'echo "deb [arch=amd64,arm64] http://packages.ros.org/ros2/ubuntu `lsb_release -cs` main" > /etc/apt/sources.list.d/ros2-latest.list' | ||
apt-get update && apt-get install -y python3-rosdep python3-rosinstall | ||
else | ||
echo "ROS_VERSION not defined or recognized" | ||
exit 1 | ||
fi |