This repository has been archived by the owner on Nov 29, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't test the installer, since it requires an internet connection (#20)
Internet connections can be flaky, so tests should not rely on them
- Loading branch information
1 parent
11d8aa7
commit c0917d0
Showing
2 changed files
with
21 additions
and
14 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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/usr/bin/env bats | ||
|
||
setup() { | ||
cd $BATS_TEST_DIRNAME | ||
unset CIRCLE_NODE_TOTAL | ||
unset CIRCLE_NODE_INDEX | ||
} | ||
|
||
@test "installer" { | ||
rm -rf ~/.local/bin/circleci-matrix | ||
# Only remove the whole folder if it's empty! | ||
if [ $(ls -1 ~/.local/bin | wc -l) -eq 0 ]; then | ||
rm -rf ~/.local/bin | ||
fi | ||
|
||
$BATS_TEST_DIRNAME/../src/install.sh | ||
|
||
[ -f ~/.local/bin/circleci-matrix ] | ||
[ -x ~/.local/bin/circleci-matrix ] | ||
~/.local/bin/circleci-matrix --version | ||
} |
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