Loading .travis.yml +1 −1 Original line number Diff line number Diff line 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: Loading script/test +1 −3 Original line number Diff line number Diff line #!/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}')" Loading Loading
.travis.yml +1 −1 Original line number Diff line number Diff line 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: Loading
script/test +1 −3 Original line number Diff line number Diff line #!/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}')" Loading