2016-04-28 17:27:13 +08:00
|
|
|
language: generic
|
2015-12-29 07:38:42 +08:00
|
|
|
sudo: required
|
2015-03-20 02:05:31 +08:00
|
|
|
addons:
|
2016-08-16 03:58:51 +08:00
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- ubuntu-toolchain-r-test
|
|
|
|
packages:
|
|
|
|
- gcc-4.8
|
|
|
|
- g++-4.8
|
2015-03-20 02:05:31 +08:00
|
|
|
apt_packages:
|
2016-08-16 03:58:51 +08:00
|
|
|
- zsh
|
|
|
|
- ksh
|
2016-08-24 15:11:50 +08:00
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- $HOME/.stack
|
2016-08-14 12:15:12 +08:00
|
|
|
- $TRAVIS_BUILD_DIR/.cache
|
2015-11-02 16:50:40 +08:00
|
|
|
before_install:
|
2016-08-01 03:42:18 +08:00
|
|
|
- $SHELL --version 2> /dev/null || dpkg -s $SHELL 2> /dev/null || which $SHELL
|
2015-11-02 16:50:40 +08:00
|
|
|
- curl --version
|
|
|
|
- wget --version
|
2016-08-24 15:11:50 +08:00
|
|
|
- if [ -n "${SHELLCHECK-}" ]; then sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 575159689BEFB442 && echo 'deb http://download.fpcomplete.com/ubuntu precise main' | sudo tee /etc/apt/sources.list.d/fpco.list && sudo apt-get update && sudo apt-get install stack bc -y && stack setup && stack install ShellCheck && shellcheck --version ; fi
|
2014-03-23 01:51:14 +08:00
|
|
|
install:
|
2015-01-19 14:24:22 +08:00
|
|
|
- (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*)
|
2014-11-06 12:14:59 +08:00
|
|
|
- chmod +x /tmp/urchin/package/urchin
|
2014-07-18 20:13:47 +08:00
|
|
|
- '[ -z "$WITHOUT_CURL" ] || sudo apt-get remove curl -y'
|
2014-03-17 02:05:28 +08:00
|
|
|
script:
|
2016-08-24 14:07:42 +08:00
|
|
|
- if [ -n "${SHELLCHECK-}" ]; then shellcheck -s bash nvm.sh && shellcheck -s sh nvm.sh && shellcheck -s dash nvm.sh && shellcheck -s ksh nvm.sh && shellcheck -s bash install.sh ; fi
|
|
|
|
- if [ -z "${SHELLCHECK-}" ]; then make TEST_SUITE=$TEST_SUITE URCHIN=/tmp/urchin/package/urchin test-$SHELL ; 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=$(echo $PATH | sed 's/::/:/')
|
|
|
|
- NVM_DIR="${TRAVIS_BUILD_DIR}"
|
|
|
|
matrix:
|
|
|
|
- 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
|
|
|
|
# - SHELL=sh TEST_SUITE=installation_node WITHOUT_CURL=1
|
|
|
|
- SHELL=dash TEST_SUITE=installation_node
|
|
|
|
# - SHELL=dash TEST_SUITE=installation_node WITHOUT_CURL=1
|
|
|
|
- SHELL=bash TEST_SUITE=installation_node
|
|
|
|
# - SHELL=bash TEST_SUITE=installation_node WITHOUT_CURL=1
|
|
|
|
- SHELL=zsh TEST_SUITE=installation_node
|
|
|
|
# - SHELL=zsh TEST_SUITE=installation_node WITHOUT_CURL=1
|
|
|
|
# - SHELL=ksh TEST_SUITE=installation_node
|
|
|
|
# - SHELL=ksh TEST_SUITE=installation_node WITHOUT_CURL=1
|
|
|
|
- SHELL=sh TEST_SUITE=installation_iojs
|
|
|
|
# - SHELL=sh TEST_SUITE=installation_iojs WITHOUT_CURL=1
|
|
|
|
- SHELL=dash TEST_SUITE=installation_iojs
|
|
|
|
# - SHELL=dash TEST_SUITE=installation_iojs WITHOUT_CURL=1
|
|
|
|
- SHELL=bash TEST_SUITE=installation_iojs
|
|
|
|
# - SHELL=bash TEST_SUITE=installation_iojs WITHOUT_CURL=1
|
|
|
|
- SHELL=zsh TEST_SUITE=installation_iojs
|
|
|
|
# - SHELL=zsh TEST_SUITE=installation_iojs WITHOUT_CURL=1
|
|
|
|
# - SHELL=ksh TEST_SUITE=installation_iojs
|
|
|
|
# - SHELL=ksh TEST_SUITE=installation_iojs WITHOUT_CURL=1
|