-
Notifications
You must be signed in to change notification settings - Fork 223
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'GITAI/hydro-devel' into nodelet-lazy
- Loading branch information
Showing
2 changed files
with
86 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
version: 2.1 | ||
|
||
jobs: | ||
melodic: &melodic | ||
docker: | ||
- image: gitaiinc/gitai-ci:melodic | ||
steps: | ||
- restore_cache: | ||
keys: | ||
- ccache-{{ .Branch }}-{{ .Revision }} | ||
- ccache-{{ .Branch }}- | ||
- ccache- | ||
- run: | ||
# Install git and ssh before checkout. Because larger | ||
name: install git and ssh | ||
command: | | ||
apt update | ||
apt install -y git ssh ccache | ||
# Creat .ssh/config in order to disable host key prompt | ||
mkdir -p ~/.ssh | ||
echo "Host *" >> ~/.ssh/config | ||
echo " StrictHostKeyChecking no" >> ~/.ssh/config | ||
- run: | ||
name: Larger ccache storage | ||
command: | | ||
ccache -M 5G | ||
- checkout | ||
- add_ssh_keys | ||
- run: | ||
name: update submodules (if needed) | ||
command: | | ||
git submodule update --init | ||
- run: | ||
name: Set Up Container | ||
command: | | ||
apt-get update -qq && apt-get install -y python-catkin-tools python-pip | ||
- run: | ||
name: Clone other repositories | ||
command: | | ||
if [ -n "${ROSINSTALL_FILE}" -a -e ${ROSINSTALL_FILE} ]; then | ||
cd .. | ||
wstool init --shallow | ||
wstool merge project/$ROSINSTALL_FILE | ||
wstool update -j10 | ||
fi | ||
- run: | ||
name: rosdep install | ||
command: | | ||
source `find /opt/ros -name setup.bash | sort | head -1` | ||
rosdep update | ||
rosdep install --from-paths .. --ignore-src -rny || true | ||
- run: | ||
name: catkin init | ||
command: | | ||
cd ../.. | ||
catkin init | ||
catkin config --extend /opt/ros/$ROS_DISTRO | ||
- run: | ||
name: Build | ||
command: | | ||
cd ../.. | ||
catkin build --no-status -j4 --summarize | ||
- run: | ||
name: Run Tests | ||
command: | | ||
source `find /opt/ros -name setup.bash | sort | head -1` | ||
cd ../.. | ||
catkin run_tests -j4 --no-deps --no-status --summarize $(cd src && catkin_topological_order . --only-names) | ||
catkin_test_results --all --verbose | ||
- save_cache: | ||
key: ccache-{{ .Branch }}-{{ .Revision }} | ||
paths: | ||
- ~/.ccache | ||
|
||
working_directory: ~/src/project | ||
environment: | ||
ROSINSTALL_FILE: .travis.rosinstall | ||
CC: ccache gcc | ||
CXX: ccache g++ | ||
|
||
workflows: | ||
tests: | ||
jobs: | ||
- melodic |
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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
*.pyc | ||
.* | ||
!.circleci |