mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2025-01-20 01:32:54 +08:00
running tests on linux and osx
This commit is contained in:
parent
fcc15fc16b
commit
b1fee8b857
|
@ -1,7 +1,11 @@
|
||||||
language: c
|
language: c
|
||||||
|
|
||||||
|
os:
|
||||||
|
- linux
|
||||||
|
- osx
|
||||||
|
|
||||||
env:
|
env:
|
||||||
- FISH_PPA=nightly-master
|
- FISH_PPA=nightly-master BREW_OPTIONS=--HEAD
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- script/bootstrap.sh
|
- script/bootstrap.sh
|
||||||
|
|
|
@ -1,6 +1,12 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
ppa=ppa:fish-shell/${FISH_PPA:-nightly-master}
|
|
||||||
sudo add-apt-repository -y $ppa
|
if [ "$TRAVIS_OS_NAME" = "linux" ]; then
|
||||||
sudo apt-get update
|
ppa=ppa:fish-shell/$FISH_PPA
|
||||||
sudo apt-get -y install fish
|
sudo add-apt-repository -y $ppa
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get -y install fish
|
||||||
|
else
|
||||||
|
brew install fish $BREW_OPTIONS
|
||||||
|
fi
|
||||||
|
|
||||||
curl -L https://github.com/$TRAVIS_REPO_SLUG/raw/$TRAVIS_BRANCH/tools/install.fish | fish
|
curl -L https://github.com/$TRAVIS_REPO_SLUG/raw/$TRAVIS_BRANCH/tools/install.fish | fish
|
||||||
|
|
|
@ -1,10 +1,5 @@
|
||||||
#!/usr/bin/env fish
|
#!/usr/bin/env fish
|
||||||
|
|
||||||
# When running on CI, run tests from the correct branch
|
|
||||||
if set -q TRAVIS_BRANCH
|
|
||||||
command git checkout $TRAVIS_BRANCH
|
|
||||||
end
|
|
||||||
|
|
||||||
set -l result 0
|
set -l result 0
|
||||||
for test in (find * -type f -print | grep "spec.fish")
|
for test in (find * -type f -print | grep "spec.fish")
|
||||||
fish $test $argv
|
fish $test $argv
|
||||||
|
|
Loading…
Reference in New Issue
Block a user