include test_msgs in docker file + add foxy back
This commit is contained in:
parent
ccdfc1ebc9
commit
c1cd22b6cc
|
|
@ -5,10 +5,9 @@ on: [push, pull_request]
|
||||||
env:
|
env:
|
||||||
CARGO_TERM_COLOR: always
|
CARGO_TERM_COLOR: always
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
testing_humble:
|
testing_humble:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- run: docker build . --file ./tests/Dockerfile_humble --tag r2r_test
|
- run: docker build . --file ./tests/Dockerfile_humble --tag r2r_test
|
||||||
|
|
@ -16,8 +15,14 @@ jobs:
|
||||||
|
|
||||||
testing_galactic:
|
testing_galactic:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- run: docker build . --file ./tests/Dockerfile_galactic --tag r2r_test
|
- run: docker build . --file ./tests/Dockerfile_galactic --tag r2r_test
|
||||||
- run: docker run r2r_test
|
- run: docker run r2r_test
|
||||||
|
|
||||||
|
testing_foxy:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- run: docker build . --file ./tests/Dockerfile_foxy --tag r2r_test
|
||||||
|
- run: docker run r2r_test
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,22 @@
|
||||||
|
# syntax=docker/dockerfile:1
|
||||||
|
FROM ros:foxy
|
||||||
|
|
||||||
|
# Update default packages
|
||||||
|
RUN apt-get update
|
||||||
|
|
||||||
|
# Get Ubuntu packages
|
||||||
|
RUN apt-get install -y \
|
||||||
|
build-essential \
|
||||||
|
curl \
|
||||||
|
libclang-dev
|
||||||
|
|
||||||
|
# Get ros test messages
|
||||||
|
RUN apt-get install -y ros-foxy-test-msgs ros-foxy-example-interfaces
|
||||||
|
|
||||||
|
# Get Rust
|
||||||
|
RUN curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf | bash -s -- -y
|
||||||
|
RUN echo 'source $HOME/.cargo/env' >> $HOME/.bashrc
|
||||||
|
|
||||||
|
COPY . /r2r
|
||||||
|
RUN chmod +x /r2r/tests/test.bash
|
||||||
|
ENTRYPOINT [ "/r2r/tests/test.bash" ]
|
||||||
|
|
@ -1,6 +1,22 @@
|
||||||
FROM kristoferb/spdesktop_ros2:galactic
|
# syntax=docker/dockerfile:1
|
||||||
|
FROM ros:galactic
|
||||||
|
|
||||||
|
# Update default packages
|
||||||
|
RUN apt-get update
|
||||||
|
|
||||||
|
# Get Ubuntu packages
|
||||||
|
RUN apt-get install -y \
|
||||||
|
build-essential \
|
||||||
|
curl \
|
||||||
|
libclang-dev
|
||||||
|
|
||||||
|
# Get ros test messages
|
||||||
|
RUN apt-get install -y ros-galactic-test-msgs ros-galactic-example-interfaces
|
||||||
|
|
||||||
|
# Get Rust
|
||||||
|
RUN curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf | bash -s -- -y
|
||||||
|
RUN echo 'source $HOME/.cargo/env' >> $HOME/.bashrc
|
||||||
|
|
||||||
COPY . /r2r
|
COPY . /r2r
|
||||||
RUN rm /bin/sh && ln -s /bin/bash /bin/sh
|
RUN chmod +x /r2r/tests/test.bash
|
||||||
RUN chmod +x /r2r/tests/test.sh
|
ENTRYPOINT [ "/r2r/tests/test.bash" ]
|
||||||
ENTRYPOINT [ "/r2r/tests/test.sh" ]
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,22 @@
|
||||||
FROM kristoferb/spdesktop_ros2:humble
|
# syntax=docker/dockerfile:1
|
||||||
|
FROM ros:humble
|
||||||
|
|
||||||
|
# Update default packages
|
||||||
|
RUN apt-get update
|
||||||
|
|
||||||
|
# Get Ubuntu packages
|
||||||
|
RUN apt-get install -y \
|
||||||
|
build-essential \
|
||||||
|
curl \
|
||||||
|
libclang-dev
|
||||||
|
|
||||||
|
# Get ros test messages
|
||||||
|
RUN apt-get install -y ros-humble-test-msgs ros-humble-example-interfaces
|
||||||
|
|
||||||
|
# Get Rust
|
||||||
|
RUN curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf | bash -s -- -y
|
||||||
|
RUN echo 'source $HOME/.cargo/env' >> $HOME/.bashrc
|
||||||
|
|
||||||
COPY . /r2r
|
COPY . /r2r
|
||||||
RUN rm /bin/sh && ln -s /bin/bash /bin/sh
|
RUN chmod +x /r2r/tests/test.bash
|
||||||
RUN chmod +x /r2r/tests/test.sh
|
ENTRYPOINT [ "/r2r/tests/test.bash" ]
|
||||||
ENTRYPOINT [ "/r2r/tests/test.sh" ]
|
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,17 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# run rustup to test with latest rust version
|
||||||
|
/root/.cargo/bin/rustup update
|
||||||
|
|
||||||
|
if [ -e "/opt/ros/humble/setup.bash" ]; then
|
||||||
|
source "/opt/ros/humble/setup.bash"
|
||||||
|
fi
|
||||||
|
if [ -e "/opt/ros/galactic/setup.bash" ]; then
|
||||||
|
source "/opt/ros/galactic/setup.bash"
|
||||||
|
fi
|
||||||
|
if [ -e "/opt/ros/foxy/setup.bash" ]; then
|
||||||
|
source "/opt/ros/foxy/setup.bash"
|
||||||
|
fi
|
||||||
|
|
||||||
|
cd /r2r/
|
||||||
|
/root/.cargo/bin/cargo test
|
||||||
|
|
@ -1,8 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
source /opt/ros/humble/setup.bash
|
|
||||||
source /opt/ros/galactic/setup.bash
|
|
||||||
rustup update
|
|
||||||
|
|
||||||
cd /r2r/
|
|
||||||
/root/.cargo/bin/cargo test
|
|
||||||
Loading…
Reference in New Issue