mirror of
https://github.com/ethauvin/sdkman-for-fish.git
synced 2025-04-27 21:58:11 -07:00
Merge branch 'dev' into macos-compat
This commit is contained in:
commit
5d7e1d43f6
3 changed files with 9 additions and 7 deletions
|
@ -30,11 +30,9 @@ matrix:
|
||||||
packages:
|
packages:
|
||||||
- fish # --> latest, i.e. >=3.0.2
|
- fish # --> latest, i.e. >=3.0.2
|
||||||
update: true # TODO: build should be green without, but isn't
|
update: true # TODO: build should be green without, but isn't
|
||||||
allow_failures:
|
|
||||||
- env: FISH=3
|
|
||||||
|
|
||||||
|
sudo: required
|
||||||
before_install:
|
before_install:
|
||||||
- fish --version
|
|
||||||
- curl -s "https://get.sdkman.io" | bash
|
- curl -s "https://get.sdkman.io" | bash
|
||||||
- bash test/prepare_tests.sh
|
- bash test/prepare_tests.sh
|
||||||
|
|
||||||
|
@ -43,6 +41,7 @@ install:
|
||||||
- cp completions/* "${HOME}"/.config/fish/completions/
|
- cp completions/* "${HOME}"/.config/fish/completions/
|
||||||
- cp conf.d/* "${HOME}"/.config/fish/conf.d/
|
- cp conf.d/* "${HOME}"/.config/fish/conf.d/
|
||||||
- cp functions/* "${HOME}"/.config/fish/functions/
|
- cp functions/* "${HOME}"/.config/fish/functions/
|
||||||
|
- uname -a; fish --version
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- ruby test/completion.rb
|
- ruby test/completion.rb
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
Makes command `sdk` from [SDKMAN!] available in fish.
|
Makes command `sdk` from [SDKMAN!] available in fish.
|
||||||
Also provides auto-completion and adds binaries from installed SDKs to the PATH.
|
Also provides auto-completion and adds binaries from installed SDKs to the PATH.
|
||||||
|
|
||||||
Tested with fish 2.7.1 and SDKMAN! 5.7.3.
|
Tested with fish 2.7.1 and 3.0.2, and SDKMAN! 5.7.3.
|
||||||
|
|
||||||
## Install
|
## Install
|
||||||
|
|
||||||
|
|
|
@ -40,7 +40,10 @@ for sdk_cmd in $test_commands
|
||||||
|
|
||||||
# For nicer diffs: one entry per line, sorted
|
# For nicer diffs: one entry per line, sorted
|
||||||
string split ":" (cat path_bash) | sort > path_bash
|
string split ":" (cat path_bash) | sort > path_bash
|
||||||
string split " " (cat path_fish) | sort > path_fish
|
string split ":" (cat path_fish) \
|
||||||
|
| string split " " \
|
||||||
|
| sort > path_fish
|
||||||
|
# split by spaces for fish 2.*
|
||||||
|
|
||||||
for out in sout status path anthome
|
for out in sout status path anthome
|
||||||
if [ (checksum "$out"_bash) != (checksum "$out"_fish) ]
|
if [ (checksum "$out"_bash) != (checksum "$out"_fish) ]
|
||||||
|
@ -58,4 +61,4 @@ rm {sout,status,path}_{bash,fish}
|
||||||
|
|
||||||
echo "Ran $test_count commands with 3 checks each."
|
echo "Ran $test_count commands with 3 checks each."
|
||||||
echo "$failures/$check_count checks failed."
|
echo "$failures/$check_count checks failed."
|
||||||
exit (math $failures != 0)
|
exit $failures
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue