attempt to have travis build with new bindings option
This commit is contained in:
parent
4feec08273
commit
57df8e2ad5
1 changed files with 6 additions and 6 deletions
|
|
@ -12,11 +12,11 @@ phpenv.Append(LIBPATH = ['../../'])
|
|||
phpenv.Command("hammer.i", "../swig/hammer.i", Copy("$TARGET", "$SOURCE"))
|
||||
phpenv.Command(['hammer.php', 'hammer_wrap.c', 'php_hammer.h'], 'hammer.i', 'swig -php -DHAMMER_INTERNAL__NO_STDARG_H -Isrc/ $SOURCE')
|
||||
|
||||
phpenv.SharedLibrary('hammer', ['hammer_wrap.c'])
|
||||
libhammer_php = phpenv.SharedLibrary('hammer', ['hammer_wrap.c'])
|
||||
|
||||
phptestenv = phpenv.Clone()
|
||||
phptestenv['ENV']['LD_LIBRARY_PATH'] = os.path.dirname(str(libhammer_shared[0]))
|
||||
tests = phptestenv.Dir('Tests/')
|
||||
phptestenv.Command(tests, [libhammer_php], "phpunit -v --include-path "+os.getcwd()+" $TARGET")
|
||||
|
||||
#phptestenv = phpenv.Clone()
|
||||
#phptestenv['ENV']['LD_LIBRARY_PATH'] = os.path.dirname(str(libhammer_shared[0]))
|
||||
#tests = phptestenv.Dir('Tests/')
|
||||
#phptestenv.Command(tests, [libhammer_php], "phpunit -v --include-path "+os.getcwd()+" $TARGET")
|
||||
|
||||
Clean('.', ['hammer.php', 'php_hammer.h'])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue