dependencies:
  pre:
    - git clone https://github.com/sstephenson/bats.git
    - cd bats
    - ./install.sh /home/ubuntu

test:
  override:
    - make test

dependencies:
  pre:
    - sudo add-apt-repository ppa:duggan/bats --yes
    - sudo apt-get update -qq
    - sudo apt-get install -qq bats

test:
  override:
    - make test

Use apt instead of install.sh
Use apt instead of install.sh
