Skip to content

Commit

Permalink
Use bats-core instead of the legacy one
Browse files Browse the repository at this point in the history
  • Loading branch information
SkypLabs committed Nov 19, 2019
1 parent dd58c80 commit b515939
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,22 @@ addons:
packages:
- doxygen

before_script:
- wget https://github.com/sstephenson/bats/archive/v0.4.0.tar.gz -O /tmp/bats.tar.gz
- tar -xvf /tmp/bats.tar.gz -C /tmp
- sudo /tmp/bats-0.4.0/install.sh /usr/local
env:
global:
- export PATH="/usr/local/bin:$PATH"

before_install:
- |
if [ "$TRAVIS_OS_NAME" = "linux" ]; then
tag=1.1.0
batstmp="$(mktemp -d bats-core-"${tag}".XXXXX)"
pushd "${batstmp}" &> /dev/null || return 11
curl -sSLO https://github.com/bats-core/bats-core/archive/v"${tag}".tar.gz
tar -zxvf v"${tag}".tar.gz
sudo bash "${batstmp}"/bats-core-"${tag}"/install.sh /usr/local
popd &> /dev/null || return 12
command -v bats && rm -rf "${batstmp}"
fi
jobs:
include:
Expand Down

0 comments on commit b515939

Please sign in to comment.