Skip to content

Commit

Permalink
.ci: Modify shell scripts to two space indents
Browse files Browse the repository at this point in the history
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 coala#2320
  • Loading branch information
sangamcse committed Apr 10, 2018
1 parent 7634540 commit b650a4b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .ci/deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 5 additions & 5 deletions .ci/env_variables.sh
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion .ci/tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit b650a4b

Please sign in to comment.