From b650a4b4cc13e145fba28585213725438c52c0dc Mon Sep 17 00:00:00 2001 From: sangamcse Date: Wed, 28 Mar 2018 18:25:53 +0530 Subject: [PATCH] .ci: Modify shell scripts to two space indents Give coala's shell scripts a standard. Modify .sh files using `shfmt -i 2 -ci` from https://github.com/mvdan/sh#shfmt. This changes shell scripts according to Google's guide. Closes https://github.com/coala/coala-bears/issues/2320 --- .ci/deps.sh | 2 +- .ci/env_variables.sh | 10 +++++----- .ci/tests.sh | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.ci/deps.sh b/.ci/deps.sh index 641e8c28c4..1ddd006fa8 100644 --- a/.ci/deps.sh +++ b/.ci/deps.sh @@ -25,7 +25,7 @@ go get -u github.com/BurntSushi/toml/cmd/tomlv bundle install --path=vendor/bundle --binstubs=vendor/bin --jobs=8 --retry=3 # Dart Lint commands -if ! dartanalyzer -v &> /dev/null ; then +if ! dartanalyzer -v &> /dev/null; then wget -nc -O ~/dart-sdk.zip https://storage.googleapis.com/dart-archive/channels/stable/release/1.14.2/sdk/dartsdk-linux-x64-release.zip unzip -n ~/dart-sdk.zip -d ~/ fi diff --git a/.ci/env_variables.sh b/.ci/env_variables.sh index 1beef85776..2e859ab4c4 100644 --- a/.ci/env_variables.sh +++ b/.ci/env_variables.sh @@ -1,9 +1,9 @@ -export python_virtualenv=`pyenv prefix` -export python_implementation=`python -c "import platform; print(platform.python_implementation())"` -export python_version=`python -c "import sys; print(str(sys.version_info.major)+'.'+str(sys.version_info.minor))"` +export python_virtualenv=$(pyenv prefix) +export python_implementation=$(python -c "import platform; print(platform.python_implementation())") +export python_version=$(python -c "import sys; print(str(sys.version_info.major)+'.'+str(sys.version_info.minor))") -if [ "$(uname)" == "Darwin" ] ; then +if [ "$(uname)" == "Darwin" ]; then export system_os="OSX" -elif [ "$(expr substr $(uname -s) 1 5)" == "Linux" ] ; then +elif [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then export system_os="LINUX" fi diff --git a/.ci/tests.sh b/.ci/tests.sh index b52adade38..fe099b0c28 100644 --- a/.ci/tests.sh +++ b/.ci/tests.sh @@ -5,7 +5,7 @@ source .ci/env_variables.sh args=() -if [ "$system_os" == "LINUX" ] ; then +if [ "$system_os" == "LINUX" ]; then args+=('--cov' '--cov-fail-under=100' '--doctest-modules') fi