1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-11-14 09:00:07 +00:00
powerlevel10k/.travis.yml

78 lines
1.7 KiB
YAML
Raw Normal View History

2016-02-08 23:53:40 +00:00
language: sh
2018-07-12 23:18:07 +00:00
os:
- linux
- osx
2018-08-05 20:26:17 +00:00
osx_image: xcode9.4
2016-02-08 23:53:40 +00:00
addons:
apt:
packages:
- build-essential
2018-07-12 23:18:07 +00:00
- git
- mercurial
- subversion
- jq
- node
- golang
- ruby
- python
- python-virtualenv
before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update ; fi
env:
global:
- ZSH_DIST=$HOME/.zshdist
matrix:
# Use _ZSH_VERSION since if ZSH_VERSION is present, travis cacher thinks it
# is running in zsh and tries to use zsh specific functions.
- _ZSH_VERSION=5.5.1
- _ZSH_VERSION=5.5
- _ZSH_VERSION=5.4.2
- _ZSH_VERSION=5.4.1
- _ZSH_VERSION=5.3.1
- _ZSH_VERSION=5.3
- _ZSH_VERSION=5.2
- _ZSH_VERSION=5.1.1
cache:
directories:
- $ZSH_DIST
2016-02-08 23:53:40 +00:00
before_script:
2018-07-12 23:18:07 +00:00
- >
setup_zsh() {
dest="$ZSH_DIST/$1"
if [[ ! -d $dest/bin ]]; then
coreutils_mktemp="mktemp"
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
coreutils_mktemp="gmktemp"
fi
tmp="$(${coreutils_mktemp} --directory --tmpdir="${TMPDIR:/tmp}" zshbuild.XXXXXX)"
(
cd "$tmp" &&
curl -L http://downloads.sourceforge.net/zsh/zsh-${1}.tar.gz | tar zx &&
cd zsh-$1 &&
./configure --prefix="$dest" &&
make &&
mkdir -p "$dest" &&
make install ||
echo "Failed to build zsh-${1}!"
)
fi
export PATH="$dest/bin:$PATH"
}
- setup_zsh $_ZSH_VERSION
2016-02-08 23:53:40 +00:00
# Show the git version being used to test.
- "git --version"
2018-07-12 23:18:07 +00:00
# Show the mercurial version being used to test.
- "hg --version"
2016-02-08 23:53:40 +00:00
# Show the zsh version being used to test.
- "zsh --version"
script:
- test/suite.spec