Set Travis-specific PATH in travis.yml

This commit is contained in:
Mislav Marohnić 2015-02-27 02:16:46 +13:00
parent 63ea89819b
commit fc5e392a54
2 changed files with 2 additions and 4 deletions

View file

@ -1,10 +1,8 @@
#!/usr/bin/env bash
set -e
[ -d ./bats/bin ] && export PATH=./bats/bin:"$PATH"
STATUS=0
bats -t test || STATUS="$?"
bats ${CI:+--tap} test || STATUS="$?"
if [ "${TRAVIS_PULL_REQUEST:-false}" != "false" ] && [ -z "$TRAVIS_COMMIT_RANGE" ]; then
first_sha="$(curl -fsSL https://github.com/${TRAVIS_REPO_SLUG}/pull/${TRAVIS_PULL_REQUEST}.patch | head -1 | awk '{print $2}')"