Skip to content

Commit 0d29d27

Browse files
committed
Merge remote-tracking branch 'autobuild/devel' into testing
2 parents 4bc442d + b92f88c commit 0d29d27

File tree

6 files changed

+52
-35
lines changed

6 files changed

+52
-35
lines changed

Diff for: .github/workflows/test.yml

-25
This file was deleted.

Diff for: .github/workflows/test_ubuntu-20.04.yml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: ubuntu-20.04
2+
on: [push]
3+
jobs:
4+
unittests:
5+
runs-on: ubuntu-20.04
6+
steps:
7+
- name: Checkout
8+
uses: actions/checkout@v3
9+
10+
- name: Branch name
11+
shell: bash
12+
run: echo "branch=$(echo ${GITHUB_REF#refs/heads/})" >> $GITHUB_OUTPUT
13+
id: current_branch
14+
15+
- name: Build 20.04
16+
run: docker build -t apaka/ubuntu-20.04 -f Dockerfile.ubuntu-20.04 . --build-arg PKG_BRANCH=${{ steps.current_branch.outputs.branch }}
17+
18+
- name: Test-on-ubuntu:20.04
19+
run: docker run --privileged apaka/ubuntu-20.04 /bin/sh -c "cd /home/docker/apaka/; BUNDLE_GEMFILE=/home/docker/apaka/test/workspace/.autoproj/Gemfile rake test"

Diff for: .github/workflows/test_ubuntu-22.04.yml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: ubuntu-22.04
2+
on: [push]
3+
jobs:
4+
unittests:
5+
runs-on: ubuntu-22.04
6+
steps:
7+
- name: Checkout
8+
uses: actions/checkout@v3
9+
10+
- name: Branch name
11+
shell: bash
12+
run: echo "branch=$(echo ${GITHUB_REF#refs/heads/})" >> $GITHUB_OUTPUT
13+
id: current_branch
14+
15+
- name: Build 22.04
16+
run: docker build -t apaka/ubuntu-22.04 -f Dockerfile.ubuntu-22.04 . --build-arg PKG_BRANCH=${{ steps.current_branch.outputs.branch }}
17+
18+
- name: Test-on-ubuntu:22.04
19+
run: docker run --privileged apaka/ubuntu-22.04 /bin/sh -c "cd /home/docker/apaka/; BUNDLE_GEMFILE=/home/docker/apaka/test/workspace/.autoproj/Gemfile rake test"

Diff for: README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# apaka: Automated PAcKaging for Autoproj
2-
[![Build Status](https://github.com/rock-core/tools-apaka/actions/workflows/test.yml/badge.svg?branch=testing)](https://github.com/rock-core/tools-apaka/actions/workflows/test.yml)
3-
2+
[![ubuntu-20.04](https://github.com/rock-core/tools-apaka/actions/workflows/test_ubuntu-20.04.yml/badge.svg)](https://github.com/rock-core/tools-apaka/actions/workflows/test_ubuntu-20.04.yml)
3+
[![ubuntu-22.04](https://github.com/rock-core/tools-apaka/actions/workflows/test_ubuntu-22.04.yml/badge.svg)](https://github.com/rock-core/tools-apaka/actions/workflows/test_ubuntu-22.04.yml)
44

55
* https://github.com/rock-core/tools-apaka
66

Diff for: lib/apaka/packaging/autoproj2adaptor.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,7 @@ def dependencies(pkg, with_rock_release_prefix = true)
561561
version = $1
562562
end
563563

564-
name = name.gsub(/[<>=]=?.*$/,"")
564+
name = name.gsub(/[ <>=]=?.*$/,"")
565565

566566
extra_gems << [name, version]
567567
non_native_dependencies << [name, version]

Diff for: lib/apaka/packaging/templates/etc-pbuilderrc

+11-7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/sh
2-
set -ex
2+
set -e
33

44
echo "Reading pbuilder /etc/pbuilderrc"
55

@@ -9,13 +9,17 @@ DEBIAN_DISTS="sid wheezy jessie stretch buster bullseye bookworm"
99
# debhelper-compat required with Starting with bulleye and focal
1010
DIST_REQUIRES_NO_DEBHELPER="trusty vivid wily xenial yakkety zesty artful bionic wheezy jessie stretch buster"
1111

12-
if [ "x${DIST}" = "x" ] && [ "x${DISTRIBUTION}" != "x" ]; then
12+
if [ -z ${DIST} ] && [ -n ${DISTRIBUTION} ]; then
1313
echo "warning: DIST is not set, using DISTRIBUTION=${DISTRIBUTION}"
1414
DIST=$DISTRIBUTION
15-
elif [ "x${DIST}" != "x" ] && [ "x${DISTRIBUTION}" = "x" ]; then
15+
elif [ -n ${DIST} ] && [ -n ${DISTRIBUTION} ]; then
16+
echo "warning: DIST (${DIST}) and DISTRIBUTION (${DISTRIBUTION}) are both set. The value of DIST will be used."
17+
DISTRIBUTION=$DIST
18+
elif [ -n ${DIST} ] && [ -z ${DISTRIBUTION} ]; then
1619
echo "warning: DISTRIBUTION is not set, using DIST=${DIST}"
1720
DISTRIBUTION=$DIST
18-
elif [ "x${DIST}" = "x" ] && [ "x${DISTRIBUTION}" = "x" ]; then
21+
else
22+
# no default distribution, let it fail
1923
DIST=$(lsb_release -sc)
2024
echo "warning: no distribution set -- using default: ${DIST}"
2125
fi
@@ -47,8 +51,8 @@ if [ "$DIST_TYPE" == "ubuntu" ]; then
4751
# The port mirror site provides arm64, armel, armhf
4852
MIRRORSITE=http://ports.ubuntu.com/ubuntu-ports
4953
fi
50-
51-
OTHERMIRROR="deb $MIRRORSITE $DIST-updates $COMPONENTS"
54+
55+
OTHERMIRROR="deb $MIRRORSITE $DIST-updates $COMPONENTS"
5256
DEBOOTSTRAPOPTS=("${DEBOOTSTRAPOPTS[@]}" --components=main,restricted,universe,multiverse)
5357
EXTRA_PACKAGES+="ruby-all-dev,"
5458

@@ -94,7 +98,7 @@ fi
9498
EXTRA_PACKAGES+="apt,apt-utils,cmake,dh-autoreconf,libgl1-mesa-dev,libboost-dev,yard,gem2deb,perl-openssl-defaults"
9599
DEBOOTSTRAPOPTS+=("--include=$EXTRA_PACKAGES")
96100

97-
echo "DIST: ${DIST}"
101+
echo "DISTRIBUTION: ${DISTRIBUTION} (DIST: ${DIST})"
98102
echo "ARCH: ${ARCH}"
99103
echo "COMPONENTS: ${COMPONENTS}"
100104
echo "DIST_TYPE: ${DIST_TYPE}"

0 commit comments

Comments
 (0)