Commandfile 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. #
  2. # Vagrant Commandfile
  3. # (use with vagrant-devcommands plugin)
  4. #
  5. command 'phpize',
  6. description: 'executes "phpize" to configure source tree for installed PHP version',
  7. script: 'cd /data/v8js && phpize'
  8. command 'configure',
  9. description: 'executes "configure" to prepare build',
  10. script: <<-eof
  11. bash -c 'cd /data/build; ../v8js/configure `bash -c "if test -d /opt/libv8-*; then echo -n --with-v8js=; echo /opt/libv8-*; fi"` `test -d "/usr/lib64" && echo --with-libdir=lib64` CXXFLAGS="-Wall -Wno-write-strings"'
  12. eof
  13. command 'clean',
  14. description: 'executes "make clean"',
  15. script: <<-eof
  16. cd /data/build; `which gmake || which make` clean
  17. eof
  18. command 'build',
  19. description: 'executes "make"',
  20. script: <<-eof
  21. cd /data/build; `which gmake || which make`
  22. eof
  23. command 'test',
  24. description: 'executes "make test"',
  25. script: <<-eof
  26. cd /data/build; `which gmake || which make` test NO_INTERACTION=1 REPORT_EXIT_STATUS=1
  27. eof
  28. command 'shell',
  29. description: 'execute a PHP CLI interactive shell with V8Js loaded',
  30. script: <<-eof
  31. cd /data/build; php -a -d extension=modules/v8js.so
  32. eof
  33. chain 'all',
  34. commands: [
  35. { command: 'phpize' },
  36. { command: 'configure' },
  37. { command: 'clean' },
  38. { command: 'build' },
  39. { command: 'test' }
  40. ]