Test compiled native extensions on Travis CI

This commit is contained in:
Mislav Marohnić 2014-01-04 21:58:12 +01:00
parent 8bac958994
commit 68b92a7f5d
2 changed files with 12 additions and 2 deletions

View file

@ -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

8
test/run Executable file
View file

@ -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