-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
88 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,4 @@ | |
/dev/mock-curl-output.json | ||
/dev/*.tgz | ||
/dev/inform-slack/** | ||
/test-results.tap | ||
/dev/test-results.tap |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,21 @@ | ||
#!/usr/bin/env bash | ||
# https://github.com/jasonk/inform-slack | ||
|
||
source "$(dirname "${BASH_SOURCE[0]}")/../lib/inform-slack.sh" | ||
export INFORM_SLACK_VERSION="v1.0.2" | ||
|
||
# If this script was sourced instead of executed then we don't run the | ||
# main function, we just return from here and you can run it yourself | ||
# later if you want | ||
if ( return 0 2>/dev/null ); then return; fi | ||
export INFORM_SLACK_SELF="$(realpath -P "${BASH_SOURCE[0]}")" | ||
export INFORM_SLACK_DIR="$(cd -P "$(dirname "$INFORM_SLACK_SELF")/.." && pwd)" | ||
source "$INFORM_SLACK_DIR/lib/inform-slack.sh" | ||
|
||
# If the script was executed and not sourced, then we run it ourselves. | ||
set -eo pipefail | ||
inform_slack "$@" | ||
if ( return 0 2>/dev/null ); then | ||
# If this script was sourced instead of executed then we don't run | ||
# the main function, we just return from here and you can run it | ||
# yourself later if you want | ||
INFORM_SLACK_SOURCED=true | ||
return | ||
else | ||
# If the script was executed and not sourced, then we run it ourselves. | ||
INFORM_SLACK_SOURCED=false | ||
set -eo pipefail | ||
inform_slack "$@" | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
brew 'bash' | ||
brew 'coreutils' | ||
brew 'pandoc' | ||
|
||
brew 'zlib' | ||
brew 'cmake' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
#!/usr/bin/env bash | ||
set -euo pipefail | ||
cd "$(dirname "$0")" | ||
cd "$(dirname "$0")/.." | ||
|
||
if command -v kcov &>/dev/null; then | ||
kcov --clean --bash-dont-parse-binary-dir \ | ||
--bash-parser=/usr/local/bin/bash \ | ||
--include-path="$(pwd)/lib,$(pwd)/bin,$(pwd)/builders" \ | ||
coverage bats test 2>/dev/null | tee test-results.tap | ||
coverage bats test 2>/dev/null | tee dev/test-results.tap | ||
else | ||
bats test | tee test-results.tap | ||
bats test | tee dev/test-results.tap | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters