Build Command

James Titcumb edited this page Apr 8, 2015 · 5 revisions

We highly recommend using HHVM to create a build - it is much faster. The build command is very straightforward to use. Simply run:

$ hhvm -c "" bin/browscap build [version]

You should see output like this:

$ hhvm -c "" bin/browscap build 6002-lite-test
[2015-04-08 10:39:24] Build started. {"memory_peak_usage":"5.36 MB"}
[2015-04-08 10:39:24] Resource folder: /home/james/workspace/browscap/resources {"memory_peak_usage":"6.09 MB"}
[2015-04-08 10:39:24] Build folder: /home/james/workspace/browscap/build {"memory_peak_usage":"6.09 MB"}
[2015-04-08 10:39:24] started creating a data collection {"memory_peak_usage":"6.12 MB"}
[2015-04-08 10:39:25] finished creating a data collection {"memory_peak_usage":"17.28 MB"}
[2015-04-08 10:39:25] started initialisation of writers {"memory_peak_usage":"17.28 MB"}
[2015-04-08 10:39:25] finished initialisation of writers {"memory_peak_usage":"17.32 MB"}
[2015-04-08 10:39:25] started output of header and version {"memory_peak_usage":"17.32 MB"}
[2015-04-08 10:39:25] finished output of header and version {"memory_peak_usage":"17.52 MB"}
[2015-04-08 10:39:25] started output of divisions {"memory_peak_usage":"17.52 MB"}
[2015-04-08 10:39:25] handle division DefaultProperties {"memory_peak_usage":"17.53 MB"}
[2015-04-08 10:39:25] checking division 360Spider {"memory_peak_usage":"18.27 MB"}
[2015-04-08 10:39:25] handle division 360Spider {"memory_peak_usage":"18.33 MB"}
[2015-04-08 10:39:25] checking division Ask {"memory_peak_usage":"18.64 MB"}
...
[2015-04-08 10:40:22] handle division Mozilla 1.0 {"memory_peak_usage":"51.56 MB"}
[2015-04-08 10:40:22] handle division Mozilla 0.9 {"memory_peak_usage":"51.56 MB"}
[2015-04-08 10:40:22] handle division Default Browser {"memory_peak_usage":"51.56 MB"}
[2015-04-08 10:40:22] finished output of divisions {"memory_peak_usage":"51.56 MB"}
[2015-04-08 10:40:22] started closing writers {"memory_peak_usage":"51.56 MB"}
[2015-04-08 10:40:22] finished closing writers {"memory_peak_usage":"51.56 MB"}
[2015-04-08 10:40:22] started creating the zip archive {"memory_peak_usage":"51.56 MB"}
[2015-04-08 10:40:29] finished creating the zip archive {"memory_peak_usage":"51.56 MB"}
[2015-04-08 10:40:29] Build done. {"memory_peak_usage":"51.56 MB"}
$

As you might expect, this will overwrite any existing files in the build directory.