diff --git a/.travis.yml b/.travis.yml index ca1abab..95b46cc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,6 @@ install: git clone https://github.com/sstephenson/bats.git -script: bats/bin/bats --tap test -# skips unnecessary Ruby-specific setup +script: PATH="./bats/bin:$PATH" test/run language: c +env: + - RBENV_NATIVE_EXT= + - RBENV_NATIVE_EXT=1 diff --git a/test/run b/test/run new file mode 100755 index 0000000..44f4128 --- /dev/null +++ b/test/run @@ -0,0 +1,8 @@ +#!/usr/bin/env bash +set -e + +if [ -n "$RBENV_NATIVE_EXT" ]; then + make -C src +fi + +exec bats ${CI:+--tap} test