2017-07-09 08:02:30 +02:00
|
|
|
language: bash
|
2017-08-02 06:50:26 +02:00
|
|
|
|
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- os: linux
|
|
|
|
dist: trusty
|
|
|
|
sudo: required
|
|
|
|
- os: osx
|
|
|
|
|
2017-07-09 08:02:30 +02:00
|
|
|
before_install:
|
|
|
|
- sudo ./install.sh all
|
2017-08-02 06:50:26 +02:00
|
|
|
|
|
|
|
install:
|
|
|
|
- if [ $TRAVIS_OS_NAME = linux ]; then sudo add-apt-repository ppa:duggan/bats --yes; fi
|
2017-08-02 16:50:26 +02:00
|
|
|
- if [ $TRAVIS_OS_NAME = linux ]; then sudo apt-get update; fi
|
2017-08-02 06:50:26 +02:00
|
|
|
- if [ $TRAVIS_OS_NAME = linux ]; then sudo apt-get install -qq bats; else brew install bats; fi
|
|
|
|
- if [ $TRAVIS_OS_NAME = linux ]; then sudo apt-get install -qq openssl; else brew install openssl; fi
|
2017-08-02 06:59:34 +02:00
|
|
|
- if [ $TRAVIS_OS_NAME = linux ]; then cpanm Sparrow --sudo --notest -q; fi
|
|
|
|
- if [ $TRAVIS_OS_NAME = linux ]; then sparrow index update; fi
|
|
|
|
- if [ $TRAVIS_OS_NAME = linux ]; then sparrow plg install bash-snippets-interactive-test; fi
|
2017-07-28 17:05:11 +02:00
|
|
|
|
2017-07-09 08:02:30 +02:00
|
|
|
script:
|
2017-08-02 06:59:34 +02:00
|
|
|
- if [ $TRAVIS_OS_NAME = linux ]; then sparrow plg run bash-snippets-interactive-test --param dir=$PWD; fi
|
2017-07-28 17:05:11 +02:00
|
|
|
- bats tests
|