# zsh shpec build draft
language: sh
env:
  matrix:
    - SHELL=bash
    - SHELL=zsh
    - SHELL=dash
    - SHELL=ksh

install:
  # install antigen
  - curl -L git.io/antigen > ~/antigen.zsh
  - echo "source ~/antigen.zsh; antigen bundle rylnd/shpec; antigen apply" > ~/.zshrc
  - echo "setopt sh_word_split" > ~/.zshenv
  - zsh ~/.zshrc
  - sh -c "export BINDIR=$HOME ; `curl -L https://raw.github.com/rylnd/shpec/master/install.sh`"

  - $HOME/.nvm/nvm.sh
  - nvm install 6 && nvm use 6
  - (cd test && npm install)

  - lynx --version

script:
  - (cd test && node server.js &)
  - sleep 1
  - |
        echo $SHELL && $SHELL --version
        if [ "$SHELL" = "zsh" ]; then
          echo "Run Zsh test"
          ./.travis-test.zsh
        else
          echo "Run $SHELL test"
          $HOME/shpec
        fi
before_install:
  - sudo apt-get install zsh lynx

cache: apt

notifications:
  email: false

# zsh shpec build draft
language: sh
env:
  matrix:
    - SHELL=bash
    - SHELL=zsh

install:
  # install antigen
  - curl -L git.io/antigen > ~/antigen.zsh
  - echo "source ~/antigen.zsh; antigen bundle rylnd/shpec; antigen apply" > ~/.zshrc
  - echo "setopt sh_word_split" > ~/.zshenv
  - zsh ~/.zshrc
  - sh -c "export BINDIR=$HOME ; `curl -L https://raw.github.com/rylnd/shpec/master/install.sh`"

  - $HOME/.nvm/nvm.sh
  - nvm install 6 && nvm use 6
  - (cd test && npm install)

  - lynx --version

script:
  - (cd test && node server.js &)
  - sleep 1
  - |
        echo $SHELL && $SHELL --version
        if [ "$SHELL" = "zsh" ]; then
          echo "Run Zsh test"
          ./.travis-test.zsh
        elif [ "$SHELL" = "bash" ]; then
          echo "Run Bash test"
          $HOME/shpec
        fi
before_install:
  - sudo apt-get install zsh lynx

cache: apt

notifications:
  email: false

Revert "attempt to make test pass for ksh and dash"
Revert "attempt to make test pass for ksh and dash"

This reverts commit 86fe28cda3bab5779a71deabeb93c32db3b087e5.

expand_alias opt not foundand syntax error on resty function
array not suported by dash
