HPI/scripts/ci/run

25 lines
438 B
Bash
Executable file

#!/bin/bash -eu
cd "$(dirname "$0")"
cd ../..
if ! command -v sudo; then
# CI or Docker sometimes doesn't have it, so useful to have a dummy
function sudo {
"$@"
}
fi
if ! [ -z "$CI" ]; then
# install OS specific stuff here
if [[ "$OSTYPE" == "darwin"* ]]; then
# macos
brew install fd
else
sudo apt update
sudo apt install fd-find
fi
fi
pip3 install --user tox
tox