language: bash

addons:
  apt:
    packages:
    - build-essential
before_install:
- export LOCAL="$(mktemp --directory --tmpdir=${TMPDIR:/tmp} local.bin.XXXXXX)"
- curl -L http://downloads.sourceforge.net/zsh/zsh-5.0.7.tar.gz | tar zx
- cd zsh-5.0.7
- ./configure --prefix=$LOCAL
- make
- make install
- cd -
- export PATH="$LOCAL/bin:$PATH"
- zsh --version

before_script:
    - git clone https://github.com/sstephenson/bats.git
    - cd bats
    - ./install.sh /usr/local
    - cd -

script:
    - bats tests.bats

language: bash

addons:
  apt:
    packages:
    - build-essential
before_install:
- sudo apt-get update -qq && sudo apt-get upgrade -qq zsh
- sudo add-apt-repository ppa:duggan/bats --yes
- sudo apt-get update -qq
- sudo apt-get install -qq bats


script:
    - bats tests.bats

Check Travis permissions, install BATS and zsh from ppa
Check Travis permissions, install BATS and zsh from ppa
