Skip to content

Commit

Permalink
Accelerate CI and prerelease test (#254)
Browse files Browse the repository at this point in the history
  • Loading branch information
at-wat authored Sep 11, 2019
1 parent 47db74b commit 7cf6c83
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
dist: xenial
dist: bionic
services: docker
language: bash
addons:
Expand Down
4 changes: 4 additions & 0 deletions .travis/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ RUN find . -name package.xml | xargs -ISRC cp --parents SRC /repos-manifests/
# ========================================
FROM ros:${ROS_DISTRO}-ros-core

RUN sed -e \
's/http:\/\/archive\.ubuntu\.com/http:\/\/us-east-1.ec2.archive.ubuntu.com/' \
-i /etc/apt/sources.list

RUN apt-get -qq update \
&& apt-get upgrade -y \
&& apt-get install -y --no-install-recommends \
Expand Down
11 changes: 10 additions & 1 deletion .travis/prerelease_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,15 @@ sudo pip3 install git+https://github.com/ros/catkin
mkdir -p /tmp/prerelease_job
cd /tmp/prerelease_job


git clone \
--depth 1 \
-b apt-get-us-east-1 \
https://github.com/at-wat/ros_buildfarm.git ros_buildfarm

sudo pip3 install ros_buildfarm


generate_prerelease_script.py \
https://raw.githubusercontent.com/ros-infrastructure/ros_buildfarm_config/production/index.yaml \
${ROS_DISTRO_TARGET} default ubuntu ${UBUNTU_DIST_TARGET} amd64 \
Expand All @@ -37,6 +46,6 @@ generate_prerelease_script.py \
--level 1 \
--output-dir ./

./prerelease.sh \
yes | ./prerelease.sh \
&& gh-pr-comment "[#${TRAVIS_BUILD_NUMBER}-prerelease] PASSED on ${ROS_DISTRO_TARGET}" "" \
|| (gh-pr-comment "[#${TRAVIS_BUILD_NUMBER}-prerelease] FAILED on ${ROS_DISTRO_TARGET}" ""; false)

0 comments on commit 7cf6c83

Please sign in to comment.