pmd/.ci/check-environment.sh

22 lines
290 B
Bash
Raw Normal View History

2020-11-10 22:26:26 +01:00
#!/usr/bin/env bash
#
# This script should check, that all needed commands are available
# and are in the correct version.
#
source logger.inc
set -e
2020-11-11 21:15:04 +01:00
# every OS:
# curl
# jq
# linux only
2020-11-10 22:26:26 +01:00
ruby --version | grep "ruby 2.7" || (log_error "Ruby is missing"; exit 1)
2020-11-11 21:15:04 +01:00
# windows only
# 7zip