From 26ee215e38eb59fce0954f879865936cdaf857fc Mon Sep 17 00:00:00 2001 From: David Brown Date: Wed, 11 Jun 2025 15:45:49 +0100 Subject: [PATCH 1/2] set janus version to 1.3.1 --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 9c63fa9..ac8503c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -72,7 +72,7 @@ RUN git clone https://libwebsockets.org/repo/libwebsockets \ make install # Compile Janus. -ARG JANUS_VERSION="1.0.1" +ARG JANUS_VERSION="1.3.1" ARG INSTALL_DIR="/opt/janus" RUN git clone https://github.com/meetecho/janus-gateway.git \ --branch "v${JANUS_VERSION}" \ From abf866f9752ccc0ce64aa22169b5ed34f64cfaf7 Mon Sep 17 00:00:00 2001 From: David Brown Date: Thu, 12 Jun 2025 12:28:47 +0100 Subject: [PATCH 2/2] try shellcheck on ubuntu machine --- .circleci/config.yml | 36 ++++++++++++++++++++++++++++-------- 1 file changed, 28 insertions(+), 8 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 6b5e05b..b68f35e 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,17 +1,37 @@ version: 2.1 +executors: + ubuntu-machine: + machine: + image: ubuntu-2204:2024.01.2 jobs: check_bash: - docker: - - image: koalaman/shellcheck-alpine:v0.7.1 - resource_class: small + # Use machine executor to allow for mounting a filesystem. + executor: ubuntu-machine steps: - - run: - name: Install dependencies - command: apk add bash git openssh-client grep - checkout - run: - name: Run static analysis on bash scripts - command: ./dev-scripts/check-bash + name: Install BATS + command: | + set -eux + git clone --branch v1.10.0 --depth 1 \ + https://github.com/bats-core/bats-core.git + cd ./bats-core + sudo ./install.sh /usr + bats --version + - run: + name: Install ShellCheck + command: | + set -eux + readonly SHELLCHECK_VERSION='v0.9.0' + wget --quiet --output-document - \ + "https://github.com/koalaman/shellcheck/releases/download/${SHELLCHECK_VERSION}/shellcheck-${SHELLCHECK_VERSION}.linux.x86_64.tar.xz" | + tar --extract --xz --verbose + cd "./shellcheck-${SHELLCHECK_VERSION}" + sudo cp shellcheck /usr/bin + shellcheck --version + - run: + name: Run tests and static analysis on bash scripts + command: sudo ./dev-scripts/check-bash build_deb_pkg: docker: - image: cimg/base:2023.06