Commandfile 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. chain 'all',
  29. commands: [
  30. { command: 'phpize' },
  31. { command: 'configure' },
  32. { command: 'clean' },
  33. { command: 'build' },
  34. { command: 'test' }
  35. ]