|
52 | 52 | echo "Testing branch $TRAVIS_BRANCH of $REPOSITORY_NAME"
|
53 | 53 | docker run --rm $QEMU_VOLUME -v $CI_SOURCE_PATH:$CI_SOURCE_PATH -e "DOCKER_IMAGE=$DOCKER_IMAGE" -e "COLLISION_LIB=$COLLISION_LIB" -e "CI_SOURCE_PATH=$CI_SOURCE_PATH" -e "HOME=$HOME" -t $DOCKER_IMAGE sh -c "cd $CI_SOURCE_PATH; ./.travis.sh"
|
54 | 54 |
|
| 55 | + catkin: |
| 56 | + runs-on: ubuntu-18.04 |
| 57 | + timeout-minutes: 60 |
| 58 | + |
| 59 | + steps: |
| 60 | + - name: Checkout |
| 61 | + uses: actions/checkout@v2 |
| 62 | + - name: Setup Apt |
| 63 | + run: | |
| 64 | + echo 'debconf debconf/frontend select Noninteractive' | sudo debconf-set-selections |
| 65 | + sudo apt-get update -qq |
| 66 | + sudo apt-get install -qq -y lsb-release wget gnupg2 # necessary for catkin-pkg to be installable |
| 67 | + sudo apt-get install -qq -y dpkg # necessary for catkin-pkg to be installable |
| 68 | + echo "Testing branch $GITHUB_REF of $GITHUB_REPOSITORY" |
| 69 | + sudo sh -c 'echo "deb http://packages.ros.org/ros-shadow-fixed/ubuntu `lsb_release -cs` main" > /etc/apt/sources.list.d/ros-latest.list' |
| 70 | + wget http://packages.ros.org/ros.key -O - | sudo apt-key add - |
| 71 | + sudo apt-get update -qq |
| 72 | + sudo apt-get install -qq -y python-catkin-tools python-rosdep |
| 73 | + sudo apt-get install -qq -y build-essential git ros-melodic-rosbash ros-melodic-rospack |
| 74 | + - name: Setup Src |
| 75 | + shell: bash |
| 76 | + run: | |
| 77 | + export CI_SOURCE_PATH=$(pwd) |
| 78 | + mkdir -p ~/catkin_ws/src |
| 79 | + cd ~/catkin_ws/src |
| 80 | + # checkout euslisp |
| 81 | + git clone --depth 1 https://github.com/tork-a/euslisp-release euslisp |
| 82 | + for file in CMakeLists.txt cmake/euslisp-extras.cmake.in env-hooks/99.euslisp.sh.in; do |
| 83 | + wget https://raw.githubusercontent.com/tork-a/euslisp-release/master/patches/${file} -O euslisp/${file} |
| 84 | + done |
| 85 | + wget https://raw.githubusercontent.com/tork-a/euslisp-release/release/melodic/euslisp/package.xml -O euslisp/package.xml |
| 86 | + # checkout jskeus |
| 87 | + cp -r ${CI_SOURCE_PATH} ./jskeus |
| 88 | + wget https://raw.githubusercontent.com/tork-a/jskeus-release/release/melodic/jskeus/package.xml -O jskeus/package.xml |
| 89 | + wget https://raw.githubusercontent.com/tork-a/jskeus-release/master/patches/CMakeLists.txt -O jskeus/CMakeLists.txt |
| 90 | + # rosdep install |
| 91 | + cd .. |
| 92 | + sudo rosdep init |
| 93 | + rosdep update |
| 94 | + rosdep install -y -r --rosdistro melodic --from-paths src --ignore-src |
| 95 | + - name: Build |
| 96 | + shell: bash |
| 97 | + run: | |
| 98 | + source /opt/ros/melodic/setup.bash |
| 99 | + cd ~/catkin_ws |
| 100 | + catkin build -v -i --make-args VERBOSE=1 |
| 101 | + - name: Test |
| 102 | + shell: bash |
| 103 | + run: | |
| 104 | + cd ~/catkin_ws |
| 105 | + ls -al devel |
| 106 | + source devel/setup.bash |
| 107 | + env |
| 108 | + cd devel/share/euslisp |
| 109 | + find jskeus/irteus/test -iname "*.l" | grep -v unittest.l | xargs -n1 irteusgl |
| 110 | + - name: Cleanup |
| 111 | + shell: bash |
| 112 | + run: | |
| 113 | + source /opt/ros/melodic/setup.bash |
| 114 | + cd ~/catkin_ws |
| 115 | + catkin clean --yes |
| 116 | + - name: Build Install |
| 117 | + shell: bash |
| 118 | + run: | |
| 119 | + source /opt/ros/melodic/setup.bash |
| 120 | + cd ~/catkin_ws |
| 121 | + catkin config --install |
| 122 | + catkin build -v -i --make-args VERBOSE=1 |
| 123 | +
|
55 | 124 | doc:
|
56 | 125 | runs-on: ubuntu-latest
|
57 | 126 | timeout-minutes: 60
|
|
0 commit comments