mirror of
https://github.com/lukechilds/zsh-nvm.git
synced 2025-01-30 09:47:14 +08:00
3cf36f4183
`brew uninstall node` seems to leave behind npm
19 lines
687 B
YAML
19 lines
687 B
YAML
language: generic
|
|
os:
|
|
- linux
|
|
- osx
|
|
addons:
|
|
apt:
|
|
packages:
|
|
- zsh
|
|
before_install:
|
|
- zsh --version
|
|
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew uninstall node; fi
|
|
- sudo rm -rf /usr/local/{lib/node{,/.npm,_modules},bin,share/man}/{npm*,node*,man1/node*}
|
|
- if [[ $(command -v nvm) == "nvm" ]]; then nvm deactivate && nvm unload && echo "Deactivated Travis nvm"; fi
|
|
install:
|
|
- (mkdir /tmp/urchin && cd /tmp/urchin && curl -s "$(curl -s https://registry.npmjs.com/urchin | grep -Eo '"tarball":\s*"[^"]+"' | tail -n 1 | awk -F\" '{ print $4 }')" -O && tar -x -f urchin*)
|
|
- chmod +x /tmp/urchin/package/urchin
|
|
script:
|
|
- /tmp/urchin/package/urchin -s zsh tests
|