Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.coafile: Add ShellCheckBear #2385

Merged
merged 2 commits into from
Apr 10, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
7 changes: 7 additions & 0 deletions .coafile
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,10 @@ ignore = *.py
[all.yml]
bears = YAMLLintBear
files = *.yml, .ci/*.yml, tests/**/*.yml

[bash]
bears = ShellCheckBear
files = .ci/*.sh
ignore = .ci/deps.pip.sh
shell = bash
shellcheck_ignore = SC2046, SC2154, SC2155