On 19 December 2014 at 14:08, Kevin KIN-FOO <[email protected]> wrote: > Le 19/12/2014 12:11, Gary V. Vaughan a écrit : >> Hi Kevin, >> >>> On 19 Dec 2014, at 10:38, Kevin KIN-FOO <[email protected]> wrote: >>> >>> Unfortunately not. >>> >>> I am seeking for a type of `source.url` which allows me to: >>> >>> $ luarocks pack some.rockspec >>> $ luarocks install some.rock >>> >>> And, this without running a local http server. >>> Do you think it is possible? >> I'm not sure about the pack part, but... >> >>> How do you check that your rockspec works? >> Before checking anything over the network, I first use: >> >> luarocks make lyaml-5.1.0-1.rockspec >> >> Directly from the working directory of my project. >> >> Then I upload my rockspec files to github alongside the sources they >> install. Because >> a few of my projects use Autotools to generate files, I have a special >> 'release' branch >> purely for the bootstrapped sources (ie with autotool files already >> generated as you >> would find after unpacking a release tarball). Obviously, for this to work, >> the >> source.url has to point to the right tag on this release branch. Before I >> upload the >> rockspec to moonscript, I check that it will work with, eg: >> >> luarocks install >> https://raw.githubusercontent.com/gvvaughan/lyaml/release/lyaml-5.1.0-1.rockspec >> >> (note that I have to tag the release first so that github provides the >> zipball referenced >> by the rockspec) >> >> I also have a git rockspec for bootstrapping unautotooled revisions from the >> master >> branch, which I test similarly. >> >> This is, as you can see, quite convoluted and finicky, which is why I >> automate the >> entire process, and created my slingshot project at github to encapsulate >> all the >> make rules and helper scripts for reuse, so that all I type to make a >> release is: >> >> make release >> >> And after testing the rockspecs from github, I upload to the moonscript Rock >> repo >> with: >> >> luarocks upload lyaml-5.1.0-1.rockspec >> >> I imagine it would be reasonably straight forward to adapt my process for >> any web >> based DVCS. >> >> HTH, > Thanks for the detailed answer Gary, > > I also used the work flow you described previously. > I wanted to know it there was a shortcut avoiding uploading rocks. > Apparently not...
Not sure if I missed something, but `luarocks make` tests the `build` section of the rockspec without requiring the sources or the rockspec to be uploaded. -- Hisham ------------------------------------------------------------------------------ New Year. New Location. New Benefits. New Data Center in Ashburn, VA. GigeNET is offering a free month of service with a new server in Ashburn. Choose from 2 high performing configs, both with 100TB of bandwidth. Higher redundancy.Lower latency.Increased capacity.Completely compliant. http://p.sf.net/sfu/gigenet _______________________________________________ Luarocks-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/luarocks-developers
