Compare commits

...

7 Commits

Author SHA1 Message Date
Oleg Kalachev
6b1b04548d Update PX4 to v1.13.2 2022-12-28 00:09:52 +03:00
Oleg Kalachev
7041ee4993 Use v0.24 release branch for Clover 2022-12-28 00:09:15 +03:00
Oleg Kalachev
7f092273b7 Run the script to create www directory to serve 2022-11-11 00:21:51 +06:00
Oleg Kalachev
9e287da28a Allow to run build workflow on demand
To allow triggering when Clover package gets updated
2022-11-08 00:51:09 +06:00
Oleg Kalachev
d814ea6ddc Run Clover's tests (#11) 2022-11-07 22:23:29 +06:00
Oleg Kalachev
39fdbce2e0 Fix image_view validation 2022-10-07 20:41:09 +06:00
Oleg Kalachev
16ff042dfa Install missing image-view package 2022-10-07 14:50:53 +06:00
2 changed files with 14 additions and 5 deletions

View File

@@ -7,6 +7,7 @@ on:
branches: [ master ]
release:
types: [ created ]
workflow_dispatch:
jobs:
build:

View File

@@ -43,7 +43,7 @@ source ~/catkin_ws/devel/setup.bash
echo "--- Getting Clover sources"
cd ~/catkin_ws/src
git clone --depth 1 https://github.com/CopterExpress/clover
git clone --depth 1 --branch v0.24-release https://github.com/CopterExpress/clover
git clone --depth 1 https://github.com/CopterExpress/ros_led
git clone --depth 1 https://github.com/ethz-asl/mav_comm
@@ -55,7 +55,7 @@ echo "--- Installing Clover's Python dependencies"
sudo -E sh -c '/usr/bin/python3 -m pip install -r ~/catkin_ws/src/clover/clover/requirements.txt'
echo "--- Downloading PX4"
git clone --recursive --depth 1 --branch v1.13.0 https://github.com/PX4/PX4-Autopilot.git ~/PX4-Autopilot
git clone --recursive --depth 1 --branch v1.13.2 https://github.com/PX4/PX4-Autopilot.git ~/PX4-Autopilot
ln -s ~/PX4-Autopilot ~/catkin_ws/src/
ln -s ~/PX4-Autopilot/Tools/sitl_gazebo ~/catkin_ws/src/
@@ -89,6 +89,9 @@ ln -s "." build/mavlink/mavlink # fix https://github.com/PX4/PX4-Autopilot/pull
echo "--- Building the workspace"
catkin_make -DCATKIN_WHITELIST_PACKAGES=""
echo "--- Running tests"
catkin_make run_tests && catkin_test_results
echo "--- Installing Visual Studio Code"
sudo -E sh -c 'apt-get update; apt-get install -y curl'
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > ${HOME}/packages.microsoft.gpg
@@ -149,9 +152,10 @@ sed "s/pi/${USER}/g" ${HOME}/catkin_ws/src/clover/builder/assets/monkey | sudo t
sudo -E sh -c "sed -i 's/SymLink Off/SymLink On/' /etc/monkey/monkey.conf"
sudo cp ${HOME}/catkin_ws/src/clover/builder/assets/monkey.service /etc/systemd/system/monkey.service
sudo systemctl enable monkey
rosrun clover www # create directory to serve
echo "--- Installing additional packages"
sudo -E sh -c 'apt-get update; apt-get install -y sshfs gvfs-fuse gvfs-backends python3-opencv byobu ipython3 byobu nmap lsof tmux vim ros-noetic-rqt-multiplot'
sudo -E sh -c 'apt-get update; apt-get install -y sshfs gvfs-fuse gvfs-backends python3-opencv byobu ipython3 byobu nmap lsof tmux vim ros-noetic-usb-cam ros-noetic-rqt-multiplot ros-noetic-image-view'
echo "--- Personalizing VM"
sudo -E sh -c 'cp /usr/share/xfce4/backdrops/xubuntu-wallpaper.png /usr/share/xfce4/backdrops/xubuntu-wallpaper-old.png; cp ${HOME}/Pictures/Logo_COEX_2019_white_on_black.png /usr/share/xfce4/backdrops/xubuntu-wallpaper.png'
@@ -182,7 +186,6 @@ pip --version
pip3 --version
monkey --version
systemctl --version
# TODO: add Python tests
roscore -h
rosversion px4
@@ -199,6 +202,7 @@ rosversion tf2_web_republisher
rosversion cv_camera
rosversion web_video_server
rosversion nodelet
rosversion image_view
echo "--- Validating PX4 builds"
cd ~/PX4-Autopilot
@@ -207,8 +211,12 @@ make px4_sitl # regular sitl build
# make px4_fmu-v4_default
make clean
echo "--- Run Clover's Python libraries validation"
echo "--- Run Clover's Python and shell tests"
source ~/catkin_ws/devel/setup.bash
export VM=1
$HOME/catkin_ws/src/clover/builder/test/tests.py
$HOME/catkin_ws/src/clover/builder/test/tests_py3.py
$HOME/catkin_ws/src/clover/builder/test/tests.sh
echo "--- Versions of all installed ROS packages"
set +x