mirror of
https://github.com/rbenv/rbenv.git
synced 2024-12-29 13:15:42 +01:00
Test compiled native extensions on Travis CI
This commit is contained in:
parent
8bac958994
commit
68b92a7f5d
2 changed files with 12 additions and 2 deletions
|
@ -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
8
test/run
Executable 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
|
Loading…
Reference in a new issue