nvm/.travis.yml

83 lines
3.3 KiB
YAML
Raw Normal View History

language: generic
dist: trusty
2015-12-29 07:38:42 +08:00
sudo: required
addons:
apt:
packages:
- cabal-install
- ghc
- zsh
# - ksh
# - gcc-4.8
# - g++-4.8
cache:
directories:
- $HOME/.npm
- $HOME/.ghc
- $HOME/.cabal
- $TRAVIS_BUILD_DIR/.cache
2017-03-25 16:58:12 +08:00
- $TRAVIS_BUILD_DIR/node_modules
before_install:
2016-08-01 03:42:18 +08:00
- $SHELL --version 2> /dev/null || dpkg -s $SHELL 2> /dev/null || which $SHELL
- curl --version
- wget --version
install:
- if [ -n "${SHELLCHECK-}" ]; then cabal update && cabal install ShellCheck && shellcheck --version ; fi
2017-03-25 16:58:12 +08:00
- if [ -z "${SHELLCHECK-}" ]; then nvm install node && npm install && npm prune && npm ls urchin doctoc; fi
2014-07-18 20:13:47 +08:00
- '[ -z "$WITHOUT_CURL" ] || sudo apt-get remove curl -y'
script:
- if [ -n "${MAKE_RELEASE-}" ]; then export GIT_EDITOR="sed -i '1 s/^/99.99.99 make release test/'" && git fetch --unshallow --tags && echo proceed | make TAG=99.99.99 release ; fi
2017-04-09 00:19:15 +08:00
- if [ -n "${DOCTOCCHECK-}" ]; then cp README.md README.md.orig && npm run doctoc && diff -q README.md README.md.orig ; fi
- if [ -n "${SHELLCHECK-}" ]; then shellcheck -s bash nvm.sh && shellcheck -s sh nvm.sh && shellcheck -s dash nvm.sh && shellcheck -s ksh nvm.sh ; fi
- if [ -n "${SHELLCHECK-}" ]; then shellcheck -s bash install.sh bash_completion nvm-exec ; fi
- if [ -n "${SHELL-}" ] && [ -n "${TEST_SUITE}" ]; then make TEST_SUITE=$TEST_SUITE URCHIN="$(npm bin)/urchin" test-$SHELL ; fi
after_success:
- if [ -n "$WITHOUT_CURL" ]; then sudo apt-get install curl -y ; fi
2014-05-09 22:23:14 +08:00
env:
2016-09-05 02:28:35 +08:00
global:
- CXX=g++-4.8
- CC=gcc-4.8
- PATH="~/.cabal/bin/:$(echo $PATH | sed 's/::/:/')"
2016-09-05 02:28:35 +08:00
- NVM_DIR="${TRAVIS_BUILD_DIR}"
matrix:
- MAKE_RELEASE=true
- DOCTOCCHECK=true
2016-09-05 02:28:35 +08:00
- SHELLCHECK=true
- SHELL=bash TEST_SUITE=install_script
- SHELL=sh TEST_SUITE=fast
- SHELL=dash TEST_SUITE=fast
- SHELL=bash TEST_SUITE=fast
- SHELL=zsh TEST_SUITE=fast
# - SHELL=ksh TEST_SUITE=fast
- SHELL=sh TEST_SUITE=sourcing
- SHELL=dash TEST_SUITE=sourcing
- SHELL=bash TEST_SUITE=sourcing
- SHELL=zsh TEST_SUITE=sourcing
# - SHELL=ksh TEST_SUITE=sourcing
- SHELL=sh TEST_SUITE=slow
- SHELL=dash TEST_SUITE=slow
- SHELL=bash TEST_SUITE=slow
- SHELL=zsh TEST_SUITE=slow
# - SHELL=ksh TEST_SUITE=slow
- SHELL=sh TEST_SUITE=installation_node
2017-04-06 14:52:26 +08:00
- SHELL=sh TEST_SUITE=installation_node WITHOUT_CURL=1
2016-09-05 02:28:35 +08:00
- SHELL=dash TEST_SUITE=installation_node
2017-04-06 14:52:26 +08:00
- SHELL=dash TEST_SUITE=installation_node WITHOUT_CURL=1
2016-09-05 02:28:35 +08:00
- SHELL=bash TEST_SUITE=installation_node
2017-04-06 14:52:26 +08:00
- SHELL=bash TEST_SUITE=installation_node WITHOUT_CURL=1
2016-09-05 02:28:35 +08:00
- SHELL=zsh TEST_SUITE=installation_node
2017-04-06 14:52:26 +08:00
- SHELL=zsh TEST_SUITE=installation_node WITHOUT_CURL=1
2016-09-05 02:28:35 +08:00
# - SHELL=ksh TEST_SUITE=installation_node
# - SHELL=ksh TEST_SUITE=installation_node WITHOUT_CURL=1
- SHELL=sh TEST_SUITE=installation_iojs
2017-04-06 14:52:26 +08:00
- SHELL=sh TEST_SUITE=installation_iojs WITHOUT_CURL=1
2016-09-05 02:28:35 +08:00
- SHELL=dash TEST_SUITE=installation_iojs
2017-04-06 14:52:26 +08:00
- SHELL=dash TEST_SUITE=installation_iojs WITHOUT_CURL=1
2016-09-05 02:28:35 +08:00
- SHELL=bash TEST_SUITE=installation_iojs
2017-04-06 14:52:26 +08:00
- SHELL=bash TEST_SUITE=installation_iojs WITHOUT_CURL=1
2016-09-05 02:28:35 +08:00
- SHELL=zsh TEST_SUITE=installation_iojs
2017-04-06 14:52:26 +08:00
- SHELL=zsh TEST_SUITE=installation_iojs WITHOUT_CURL=1
2016-09-05 02:28:35 +08:00
# - SHELL=ksh TEST_SUITE=installation_iojs
# - SHELL=ksh TEST_SUITE=installation_iojs WITHOUT_CURL=1