Commit fc5e392a by Mislav Marohnić

Set Travis-specific PATH in travis.yml

parent 63ea8981
sudo: false sudo: false
install: git clone --depth 1 https://github.com/sstephenson/bats.git install: git clone --depth 1 https://github.com/sstephenson/bats.git
script: script/test script: PATH="./bats/bin:$PATH" script/test
language: c language: c
notifications: notifications:
email: email:
......
#!/usr/bin/env bash #!/usr/bin/env bash
set -e set -e
[ -d ./bats/bin ] && export PATH=./bats/bin:"$PATH"
STATUS=0 STATUS=0
bats -t test || STATUS="$?" bats ${CI:+--tap} test || STATUS="$?"
if [ "${TRAVIS_PULL_REQUEST:-false}" != "false" ] && [ -z "$TRAVIS_COMMIT_RANGE" ]; then 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}')" first_sha="$(curl -fsSL https://github.com/${TRAVIS_REPO_SLUG}/pull/${TRAVIS_PULL_REQUEST}.patch | head -1 | awk '{print $2}')"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment