Permalink
Browse files

Set Travis-specific PATH in travis.yml

  • Loading branch information...
1 parent 63ea898 commit fc5e392a54153dce5d0d106da70ba88b5793e213 @mislav mislav committed Feb 26, 2015
Showing with 2 additions and 4 deletions.
  1. +1 −1 .travis.yml
  2. +1 −3 script/test
View
@@ -1,6 +1,6 @@
sudo: false
install: git clone --depth 1 https://github.com/sstephenson/bats.git
-script: script/test
+script: PATH="./bats/bin:$PATH" script/test
language: c
notifications:
email:
View
@@ -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}')"

0 comments on commit fc5e392

Please sign in to comment.