Add fish to Travis build

This commit is contained in:
Trevor Brown 2019-04-07 13:23:33 -04:00
parent ff553324a7
commit c847a99d89
2 changed files with 22 additions and 2 deletions

View File

@ -5,8 +5,7 @@ script:
- ./lint.sh
before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install shellcheck; fi
- ./prepare-travis.sh
before_script:
- git clone https://github.com/sstephenson/bats.git /tmp/bats

21
prepare-travis.sh Executable file
View File

@ -0,0 +1,21 @@
#!/bin/bash
# Install dependencies needed for build on Travis CI
# Shellcheck is used by the linting script
# Fish is needed for the tests for asdf.fish
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
brew update;
brew install shellcheck;
brew update
brew instal fish
elif [[ "$TRAVIS_OS_NAME" = "linux" ]]; then
${FISH_PPA:="nightly-master"}
PPA="ppa:fish-shell/$FISH_PPA"
sudo add-apt-repository -y "$PPA"
sudo apt-get update
sudo apt-get -y install fish
fi