Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 28 additions & 8 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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}" \
Expand Down