-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from trobrock/fish-support
Support fish shell
- Loading branch information
Showing
7 changed files
with
99 additions
and
11 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 |
---|---|---|
@@ -1 +1,4 @@ | ||
script: "./test/test.sh" | ||
env: | ||
- TEST_SHELL=bash | ||
- TEST_SHELL=fish |
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,3 +1,3 @@ | ||
#!/usr/bin/env bash | ||
|
||
export _CHEFVM_VERSION="1.1.0" | ||
export _CHEFVM_VERSION="1.2.0" |
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,11 @@ | ||
#!/usr/bin/env bash | ||
|
||
if [ $TRAVIS_BUILD_DIR ]; then | ||
CODE_PATH=$TRAVIS_BUILD_DIR | ||
else | ||
CODE_PATH="$HOME/.chefvm" | ||
fi | ||
|
||
eval "$($CODE_PATH/bin/chefvm init -)" | ||
|
||
bats $CODE_PATH/test |
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,24 @@ | ||
#!/usr/bin/env fish | ||
|
||
if test -n "$TRAVIS_BUILD_DIR" | ||
set CODE_PATH $TRAVIS_BUILD_DIR | ||
|
||
# clean the path on travis | ||
for val in $PATH | ||
if test -d $val | ||
set path $path $val | ||
end | ||
end | ||
set -x PATH $path | ||
else | ||
set CODE_PATH $HOME/.chefvm | ||
end | ||
|
||
function chefvm_init | ||
eval $CODE_PATH/bin/chefvm init - | ||
end | ||
|
||
echo $PATH | ||
eval (chefvm_init) | ||
|
||
bats $CODE_PATH/test |
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