commit
1994b658ff
@ -0,0 +1,10 @@
|
|||||||
|
# SYNOPSIS
|
||||||
|
# refresh
|
||||||
|
#
|
||||||
|
# OVERVIEW
|
||||||
|
# Refresh (reload) the current fish session.
|
||||||
|
|
||||||
|
function refresh -d "refresh the fish session (Travis Override)"
|
||||||
|
echo !!! Shell refresh requested in testing Environment !!!
|
||||||
|
exit 0;
|
||||||
|
end
|
@ -0,0 +1,16 @@
|
|||||||
|
#!/usr/bin/env fish
|
||||||
|
|
||||||
|
# TODO: This is only a basic draft.
|
||||||
|
|
||||||
|
set -l return_code 0
|
||||||
|
|
||||||
|
set commands "omf help" "omf query PATH" "omf query fish_function_path" "omf install apt"
|
||||||
|
for cmd in $commands
|
||||||
|
echo \$ $cmd
|
||||||
|
if not eval $cmd
|
||||||
|
set return_code 1
|
||||||
|
end;
|
||||||
|
end;
|
||||||
|
|
||||||
|
|
||||||
|
exit $return_code
|
@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
set -e
|
||||||
|
BINDIR=$HOME/fish/bin
|
||||||
|
# check to see if fish bin doesn't exist
|
||||||
|
if [ ! -x "$BINDIR/fish" ]; then
|
||||||
|
cd /tmp
|
||||||
|
wget -O - https://github.com/fish-shell/fish-shell/releases/download/2.2.0/fish-2.2.0.tar.gz | tar xzv
|
||||||
|
cd fish-2.2.0 && ./configure --prefix=$HOME/fish && make -j2 && make install;
|
||||||
|
strip $BINDIR/fish $BINDIR/fish_indent $BINDIR/mimedb
|
||||||
|
else
|
||||||
|
echo 'Using cached directory.';
|
||||||
|
fi
|
@ -0,0 +1,21 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
git () {
|
||||||
|
case $1 in
|
||||||
|
clone)
|
||||||
|
command git "$@"
|
||||||
|
if test "$TRAVIS_PULL_REQUEST" != "false"; then
|
||||||
|
echo "! detecting a pull request !"
|
||||||
|
echo "$ git -C $OMF_PATH fetch origin +refs/pull/$TRAVIS_PULL_REQUEST/merge:"
|
||||||
|
git -C $OMF_PATH fetch origin +refs/pull/$TRAVIS_PULL_REQUEST/merge:
|
||||||
|
echo "$ git -C $OMF_PATH checkout -qf FETCH_HEAD"
|
||||||
|
git -C $OMF_PATH checkout -qf FETCH_HEAD
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
command git "$@"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
}
|
||||||
|
|
||||||
|
. $TRAVIS_BUILD_DIR/bin/install
|
Loading…
Reference in New Issue