-
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.
Revert -e on scripts that can / are expected to be sourced, add CI (#57)
* Restore exit on error setting in before_deploy.sh * Restore exit on error setting in add_tag.sh * Restore exit on error setting in post_deploy.sh * Restore exit on error setting in codepipeline_deploy.sh * Add .travis.yml * Update Travis notification settings in .travis.yml
- Loading branch information
Showing
5 changed files
with
121 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,109 @@ | ||
sudo: required | ||
language: generic | ||
compiler: | ||
- gcc | ||
notifications: | ||
email: | ||
on_success: change | ||
on_failure: always | ||
recipients: | ||
- ros-contributions@amazon.com | ||
email: | ||
on_success: always | ||
on_failure: always | ||
recipients: | ||
- travis-build@platform-notifications.robomaker.aws.a2z.com | ||
env: | ||
global: | ||
- GH_USER_NAME="travis-ci" | ||
- GH_USER_EMAIL="travis@travis-ci.org" | ||
- AWS_DEFAULT_REGION=us-west-2 | ||
before_install: | ||
- pip install --user awscli | ||
install: | ||
# Universal steps for fetching a repository & restructuring the directory tree to align with the way our CI is set up | ||
# Move travis-scripts to ros_app/.ros_ci and set TRAVIS_BUILD_DIR to be ros_app | ||
- git clone -b ${CLONE_BRANCH} ${CLONE_URL} ${TRAVIS_BUILD_DIR}/../ros_app | ||
- cp -R ${TRAVIS_BUILD_DIR} ${TRAVIS_BUILD_DIR}/../.ros_ci | ||
- mv ${TRAVIS_BUILD_DIR}/../ros_app ${TRAVIS_BUILD_DIR} | ||
- mv ${TRAVIS_BUILD_DIR}/../.ros_ci ${TRAVIS_BUILD_DIR}/ros_app/.ros_ci | ||
- export TRAVIS_BUILD_DIR=${TRAVIS_BUILD_DIR}/ros_app | ||
- cd ${TRAVIS_BUILD_DIR} | ||
before_deploy: | ||
# Remove the line containing `aws s3 ls` in order to skip querying of S3 | ||
- sed -i 's/.*aws s3 ls.*//g' .ros_ci/before_deploy.sh | ||
- . .ros_ci/before_deploy.sh && set +e | ||
jobs: | ||
include: | ||
- stage: Build Downstream Consumers | ||
# The build jobs below are modeled after the respective .travis.yml files in the relevant repository (i.e. CLONE_URL/.travis.yml). | ||
name: "Build & Bundle ROS1 Sample App" | ||
env: | ||
- ROS_VERSION=1 | ||
- ROS_DISTRO=melodic | ||
- GAZEBO_VERSION=9 | ||
- WORKSPACES="robot_ws simulation_ws" | ||
- SA_NAME=hello-world | ||
- SA_PACKAGE_NAME=hello_world_robot | ||
- NO_TEST=true | ||
- CLONE_URL=https://github.com/aws-robotics/aws-robomaker-sample-application-helloworld | ||
- CLONE_BRANCH=ros1 | ||
script: | ||
- . .ros_ci/add_tag.sh && set +e | ||
- while sleep 9m; do echo "=====[ $SECONDS seconds still running ]====="; done & | ||
- ".ros_ci/ce_build.sh" | ||
- kill %1 | ||
deploy: | ||
- provider: script | ||
script: "echo Performing mock deploy stage" | ||
on: | ||
branch: master | ||
|
||
- name: "Build & Bundle ROS2 Sample App" | ||
env: | ||
- ROS_VERSION=2 | ||
- ROS_DISTRO=dashing | ||
- GAZEBO_VERSION=9 | ||
- WORKSPACES="robot_ws simulation_ws" | ||
- SA_NAME=hello-world | ||
- SA_PACKAGE_NAME=hello_world_robot | ||
- NO_TEST=true | ||
- CLONE_URL=https://github.com/aws-robotics/aws-robomaker-sample-application-helloworld | ||
- CLONE_BRANCH=ros2 | ||
script: | ||
- . .ros_ci/add_tag.sh && set +e | ||
- while sleep 9m; do echo "=====[ $SECONDS seconds still running ]====="; done & | ||
- ".ros_ci/ce_build.sh" | ||
- kill %1 | ||
deploy: | ||
- provider: script | ||
script: "echo Performing mock deploy stage" | ||
on: | ||
branch: master | ||
|
||
- name: "Build ROS1 Cloud Extension" | ||
env: | ||
- PACKAGE_NAMES=aws_ros1_common | ||
- ROS_VERSION=1 | ||
- ROS_DISTRO=kinetic | ||
- CLONE_URL=https://github.com/aws-robotics/utils-ros1 | ||
- CLONE_BRANCH=master | ||
script: | ||
- ".ros_ci/ce_build.sh" | ||
before_deploy: # Blank override - no deploy stage for CEs | ||
after_deploy: # Blank override - no deploy stage for CEs | ||
|
||
- name: "Build ROS2 Cloud Extension" | ||
env: | ||
- PACKAGE_NAMES=aws_ros2_common | ||
- ROS_VERSION=2 | ||
- ROS_DISTRO=dashing | ||
- CLONE_URL="https://github.com/aws-robotics/utils-ros2" | ||
- CLONE_BRANCH=master | ||
script: | ||
- ".ros_ci/ce_build.sh" | ||
before_deploy: # Blank override - no deploy stage for CEs | ||
after_deploy: # Blank override - no deploy stage for CEs | ||
|
||
after_deploy: | ||
- .ros_ci/post_deploy.sh |
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