mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
devops: safety checks for buildbot scripts
This commit is contained in:
parent
13282c9ac5
commit
ab6e358c4d
@ -2,6 +2,11 @@
|
||||
set -e
|
||||
set +x
|
||||
|
||||
if [[ $(uname) != "Linux" ]]; then
|
||||
echo "ERROR: this script is desgined to be run on Linux. Can't run on $(uname)"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ ($1 == '--help') || ($1 == '-h') ]]; then
|
||||
echo "usage: $(basename $0)"
|
||||
echo
|
||||
|
||||
@ -2,6 +2,17 @@
|
||||
set -e
|
||||
set +x
|
||||
|
||||
if [[ "$(uname)" != "Darwin" ]]; then
|
||||
echo "ERROR: this script is desgined to be run on OSX. Can't run on $(uname)"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
MAC_MAJOR_MINOR_VERSION=$(sw_vers -productVersion | grep -o '^\d\+.\d\+')
|
||||
if [[ $MAC_MAJOR_MINOR_VERSION != "10.14" ]]; then
|
||||
echo "ERROR: this script is desgined to be run on OSX 10.14. Can't run on OSX $MAC_MAJOR_MINOR_VERSION"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ ($1 == '--help') || ($1 == '-h') ]]; then
|
||||
echo "usage: $(basename $0)"
|
||||
echo
|
||||
|
||||
@ -2,6 +2,18 @@
|
||||
set -e
|
||||
set +x
|
||||
|
||||
if [[ "$(uname)" != "Darwin" ]]; then
|
||||
echo "ERROR: this script is desgined to be run on OSX. Can't run on $(uname)"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
MAC_MAJOR_MINOR_VERSION=$(sw_vers -productVersion | grep -o '^\d\+.\d\+')
|
||||
if [[ $MAC_MAJOR_MINOR_VERSION != "10.15" ]]; then
|
||||
echo "ERROR: this script is desgined to be run on OSX 10.15. Can't run on OSX $MAC_MAJOR_MINOR_VERSION"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
if [[ ($1 == '--help') || ($1 == '-h') ]]; then
|
||||
echo "usage: $(basename $0) [firefox|webkit]"
|
||||
echo
|
||||
|
||||
@ -2,6 +2,12 @@
|
||||
set -e
|
||||
set +x
|
||||
|
||||
if [[ $(uname) != MINGW* ]]; then
|
||||
echo "ERROR: this script is desgined to be run on MINGW. Can't run on $(uname)"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
if [[ ($1 == '--help') || ($1 == '-h') ]]; then
|
||||
echo "usage: $(basename $0)"
|
||||
echo
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user