Skip to content

Commit

Permalink
Merge pull request #236 from sparklemotion/test-build
Browse files Browse the repository at this point in the history
Try catting the mkmf.log file if there is a failure
  • Loading branch information
tenderlove committed Jun 21, 2018
2 parents fd285ba + f4ffec2 commit b6862d8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ addons:
packages:
- libgmp-dev

after_failure:
- "find . -name mkmf.log -exec cat {} \\;"

after_success:
- "find . -name mkmf.log -exec cat {} \\;"

env:
- USE_MINI_PORTILE=true
- USE_MINI_PORTILE=false
Expand Down
6 changes: 6 additions & 0 deletions ext/sqlite3/extconf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,12 @@ def asplode missing
asplode('sqlite3.h') unless find_header 'sqlite3.h'
find_library 'pthread', 'pthread_create' # 1.8 support. *shrug*

have_library 'dl'

%w{ dlopen dlclose dlsym }.each do |func|
abort "missing function #{func}" unless have_func(func)
end

if with_config('sqlcipher')
asplode('sqlcipher') unless find_library 'sqlcipher', 'sqlite3_libversion_number'
else
Expand Down

0 comments on commit b6862d8

Please sign in to comment.