Travis: Adding fish-2.2.0 from github.

Adding apt dependencies + build script + cache directive.
This commit is contained in:
jeremiejig 2015-09-15 20:23:57 +02:00
parent ca05effd55
commit 250fe263ef
2 changed files with 27 additions and 2 deletions

View File

@ -5,13 +5,28 @@ sudo: false
addons:
apt:
packages:
- bc
- doxygen
- expect
- gettext
- libncurses5-dev
- tree
- fish
env:
global:
- PATH="$HOME/fish/bin:$PATH"
before_install:
- tests/install_fish.sh
before_script: pwd; tree -h
script: "/bin/sh bin/install"
after_script:
- cd ~/.config/fish; tree -h; find . -type f | xargs cat
- cd ~/.config/fish; tree -h; find . -type f | xargs cat
cache:
directories:
- $HOME/fish
notifications:
email:

10
tests/install_fish.sh Executable file
View File

@ -0,0 +1,10 @@
#!/bin/sh
set -e
# check to see if fish bin doesn't exist
if [ ! -x "$HOME/fish/bin/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;
else
echo 'Using cached directory.';
fi