mirror of
https://github.com/ethauvin/sdkman-for-fish.git
synced 2025-04-25 21:27:11 -07:00
issue #29 - Make Travis test on macOS.
And mercy be with us all. - Use `apt` and `homebrew` addons for simplicity and build speed (?). - Make build matrix explicit: can't handle installing different versions of fish otherwise.
This commit is contained in:
parent
0d080212d2
commit
da69b50eb5
1 changed files with 44 additions and 21 deletions
65
.travis.yml
65
.travis.yml
|
@ -1,28 +1,51 @@
|
||||||
env:
|
|
||||||
- FISH=release-2
|
|
||||||
- FISH=release-3
|
|
||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
allow_failures:
|
include:
|
||||||
- env: FISH=release-3
|
- os: linux
|
||||||
|
env: FISH=2
|
||||||
|
addons:
|
||||||
|
apt:
|
||||||
|
sources:
|
||||||
|
- sourceline: "ppa:fish-shell/release-2"
|
||||||
|
packages:
|
||||||
|
- fish
|
||||||
|
- os: linux
|
||||||
|
env: FISH=3
|
||||||
|
addons:
|
||||||
|
apt:
|
||||||
|
sources:
|
||||||
|
- sourceline: "ppa:fish-shell/release-3"
|
||||||
|
packages:
|
||||||
|
- fish
|
||||||
|
- os: osx
|
||||||
|
env: FISH=2
|
||||||
|
addons:
|
||||||
|
homebrew:
|
||||||
|
packages:
|
||||||
|
- 'https://raw.githubusercontent.com/Homebrew/homebrew-core/799fef191cd2beac06930e1d1a8e7f308bd0f4b1/Formula/fish.rb' # 2.7.1
|
||||||
|
update: true # TODO: build should be green without, but isn't
|
||||||
|
- os: osx
|
||||||
|
env: FISH=3
|
||||||
|
addons:
|
||||||
|
homebrew:
|
||||||
|
packages:
|
||||||
|
- fish # --> latest, i.e. >=3.0.2
|
||||||
|
update: true # TODO: build should be green without, but isn't
|
||||||
|
allow_failures:
|
||||||
|
- env: FISH=3
|
||||||
|
|
||||||
sudo: required
|
|
||||||
before_install:
|
before_install:
|
||||||
- sudo add-apt-repository -y ppa:fish-shell/${FISH}
|
- fish --version
|
||||||
- sudo apt-get update
|
- curl -s "https://get.sdkman.io" | bash
|
||||||
- sudo apt-get -y install fish
|
- bash test/prepare_tests.sh
|
||||||
- curl -s "https://get.sdkman.io" | bash
|
|
||||||
- bash test/prepare_tests.sh
|
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- mkdir -p "${HOME}"/.config/fish/{completions,conf.d,functions}
|
- mkdir -p "${HOME}"/.config/fish/{completions,conf.d,functions}
|
||||||
- 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/
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- ruby test/completion.rb
|
- ruby test/completion.rb
|
||||||
- fish test/wrapper.fish
|
- fish test/wrapper.fish
|
||||||
- fish test/reinitialize.fish
|
- fish test/reinitialize.fish
|
||||||
- bash -c "sdk install crash 1.3.0; sdk uninstall crash 1.3.0"; fish test/10_zombies_new.fish
|
- bash -c "sdk install crash 1.3.0; sdk uninstall crash 1.3.0"; fish test/10_zombies_new.fish
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue