GitHub actions (#15)
Testing using github actions to build r2r in foxy, galactic and rolling
This commit is contained in:
parent
5ab5ab5e3f
commit
be4b7acf72
|
|
@ -0,0 +1,35 @@
|
||||||
|
name: Rust
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ github_actions ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ github_actions ]
|
||||||
|
|
||||||
|
env:
|
||||||
|
CARGO_TERM_COLOR: always
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
testing_rolling:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- run: docker build . --file ./tests/Dockerfile --tag 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
|
||||||
|
|
||||||
|
testing_galactic:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- run: docker build . --file ./tests/Dockerfile_galactic --tag r2r_test
|
||||||
|
- run: docker run r2r_test
|
||||||
|
|
@ -0,0 +1,6 @@
|
||||||
|
FROM kristoferb/spdesktop_ros2:rolling
|
||||||
|
|
||||||
|
COPY . /r2r
|
||||||
|
RUN rm /bin/sh && ln -s /bin/bash /bin/sh
|
||||||
|
RUN chmod +x /r2r/tests/test.sh
|
||||||
|
ENTRYPOINT [ "/r2r/tests/test.sh" ]
|
||||||
|
|
@ -0,0 +1,6 @@
|
||||||
|
FROM kristoferb/spdesktop_ros2:foxy
|
||||||
|
|
||||||
|
COPY . /r2r
|
||||||
|
RUN rm /bin/sh && ln -s /bin/bash /bin/sh
|
||||||
|
RUN chmod +x /r2r/tests/test.sh
|
||||||
|
ENTRYPOINT [ "/r2r/tests/test.sh" ]
|
||||||
|
|
@ -0,0 +1,6 @@
|
||||||
|
FROM kristoferb/spdesktop_ros2:galactic
|
||||||
|
|
||||||
|
COPY . /r2r
|
||||||
|
RUN rm /bin/sh && ln -s /bin/bash /bin/sh
|
||||||
|
RUN chmod +x /r2r/tests/test.sh
|
||||||
|
ENTRYPOINT [ "/r2r/tests/test.sh" ]
|
||||||
|
|
@ -0,0 +1,8 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
source /opt/ros/rolling/setup.bash
|
||||||
|
source /opt/ros/foxy/setup.bash
|
||||||
|
source /opt/ros/galactic/setup.bash
|
||||||
|
|
||||||
|
cd /r2r/
|
||||||
|
/root/.cargo/bin/cargo test
|
||||||
Loading…
Reference in New Issue