Skip to content

Commit

Permalink
Merge pull request #49 from Fantu/tests
Browse files Browse the repository at this point in the history
Additional automatic tests
  • Loading branch information
bigbigmdm authored Jan 23, 2024
2 parents 0839260 + d020e5c commit 5a792c5
Show file tree
Hide file tree
Showing 2 changed files with 94 additions and 0 deletions.
93 changes: 93 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
# Use the latest 2.1 version of CircleCI pipeline process engine.
# See: https://circleci.com/docs/2.0/configuration-reference
version: 2.1

debian_only: &debian_only
filters:
branches:
only: /debian\/.*/

shared: &shared
steps:
- checkout
- run:
name: Prepare environment
command: |
echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
apt-get update
apt-get dist-upgrade -y
- run:
name: Install dependencies
command: |
apt-get install -y devscripts equivs
mk-build-deps -B --install --tool='apt-get -o Debug::pkgProblemResolver=yes --yes' debian/control
- run:
name: Build packages
working_directory: .
command: dpkg-buildpackage -us -uc -b
- run:
name: Save generate packages as artifacts
working_directory: ..
command: |
mkdir /tmp/artifacts
mv *.deb /tmp/artifacts
- store_artifacts:
path: /tmp/artifacts

jobs:
debian10:
<<: *shared
docker:
- image: library/debian:buster
debian11:
<<: *shared
docker:
- image: library/debian:bullseye
debian12:
<<: *shared
docker:
- image: library/debian:bookworm
debian13:
<<: *shared
docker:
- image: library/debian:trixie
ubuntu1404:
<<: *shared
docker:
- image: library/ubuntu:trusty
ubuntu1604:
<<: *shared
docker:
- image: library/ubuntu:xenial
ubuntu1804:
<<: *shared
docker:
- image: library/ubuntu:bionic
ubuntu2004:
<<: *shared
docker:
- image: library/ubuntu:focal
ubuntu2204:
<<: *shared
docker:
- image: library/ubuntu:jammy
ubuntu2310:
<<: *shared
docker:
- image: library/ubuntu:mantic

workflows:
build-deb:
jobs:
- debian11:
<<: *debian_only
- debian12:
<<: *debian_only
- debian13:
<<: *debian_only
- ubuntu2004:
<<: *debian_only
- ubuntu2204:
<<: *debian_only
- ubuntu2310:
<<: *debian_only
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ jobs:
libusb-1.0-0-dev \
qtbase5-dev \
pkg-config
apt-get satisfy "systemd-dev (>= 253-2~) | udev (<< 253-2~)" --yes
- uses: actions/checkout@v4
- name: Build
working-directory: .
Expand Down

0 comments on commit 5a792c5

Please sign in to comment.