I'd like to test out this module using the simplytest.me drupal module testing service.
Because Views PDF requires the TCPDF and FPDI libraries, the module doing fully work with this service, because I'm unable to download and copy the library files to sites/all/libraries/.
From what I can tell, the integration of these libraries can be "automated" for use with simplytest.me.
What about modules depending on external libraries?
If your module requires an external library (eg. a jQuery plugin), please read how to automatically resolve such dependencies by make-files. Simplytest.me will then execute the first drush make-file (.make or .make.example) it can find. Also please make sure that your make-files are still up-to-date and working.
Comment | File | Size | Author |
---|---|---|---|
#8 | 2301067-8-add-make-file.patch | 1 KB | killua99 |
Comments
Comment #1
vegansupreme CreditAttribution: vegansupreme commentedThis seems easy enough. If this module was more friendly with simplytest.me, more people would try it and more people might use it.
This page was referenced by the simplytest QA page, and at the very bottom it says:
That was from 2010, maybe by now this is settled?
It seems like this would also make it easier for any user to download and enable this module with drush.
Are there any issues with including a make-file?
Interested in submitting a patch?
Comment #2
bigdave CreditAttribution: bigdave commentedI have tested several contrib modules with simplytest.me that required additional libraries and they worked just splendidly with the service.
I'm not associated with simplytest.me I just find it useful when browsing modules to be able to test them quickly without having to do much on my side.
Nor am I a developer by any sense of the word, so I wouldn't know where to start with a patch like like this.
Comment #3
killua99 CreditAttribution: killua99 commentedSound fair to me. I'll try something.
Sound a solid solution better than use drush to download it.
Comment #4
killua99 CreditAttribution: killua99 commentedThis could be an easy Feature.
I'll try something.
Comment #5
killua99 CreditAttribution: killua99 commentedNeed reviews.
Comment #6
killua99 CreditAttribution: killua99 commentedActually that patch need a revision. I'm looking how the module colorbox do it, and I'll replicate it.
Comment #7
killua99 CreditAttribution: killua99 commentedBah still, simplytest.me doesn't download the libraries, I'll add libraries 2.x as dependencie and I'll see.
Comment #8
killua99 CreditAttribution: killua99 commentedOk last Change!
The url was so nasty than cause the wget broke. I try a "trick" and it work.
Comment #9
killua99 CreditAttribution: killua99 commentedWOah! it work!
The last patch is working on Simplytest.me :D
To test it you need to:
- go to: http://simplytest.me/
- search for views_pdf
- expand the advance options and fill the "patch file" with: http://www.drupal.org/files/issues/2301067-8-add-make-file.patch
Now when you navigate to simplytest.me/node#overlay=admin/reports/status you'll see in Green the libraries :)
And I could create a PDF file ;D
Comment #10
killua99 CreditAttribution: killua99 commentedComment #11
vegansupreme CreditAttribution: vegansupreme commentedWorks on Simplytest.me. I haven't tried it on clean install with drush, but the OP is asking specifically about Simplytest.me. Think this is ready to commit?
Comment #12
killua99 CreditAttribution: killua99 commentedWell if @bigdave is around to test it and write a review could be nice. I'll wait a few days more.
Comment #13
killua99 CreditAttribution: killua99 commentedI'll commit this.
If you read this before I commit @vegansupreme you're free to commit it, I'll do it later ...
Comment #14
killua99 CreditAttribution: killua99 commentedI'll commit this.
If you read this before I commit @vegansupreme you're free to commit it, I'll do it later ...
Comment #16
vegansupreme CreditAttribution: vegansupreme commentedComment #17
killua99 CreditAttribution: killua99 commentedThere ... thanks :)
Comment #19
vegansupreme CreditAttribution: vegansupreme commentedI just tried to use simplytest with Views PDF and it didn't work this time. I tried with the Dev version which should include the make file, and I also tend the same procedure that worked before—using views_pdf 7.x-1.x and adding this patch.
The error I get when trying to create a PDF page is:
Fatal error: require_once(): Failed opening required 'sites/all/libraries/tcpdf/tcpdf.php' (include_path='.:/usr/share/php:/usr/share/pear') in /home/dfea5/www/sites/default/modules/views_pdf/views_pdf_template.php on line 16
Comment #20
killua99 CreditAttribution: killua99 commentedMight be something with simplytest? In the past it work, now, don't might be something with simplytest.
Comment #21
killua99 CreditAttribution: killua99 commentedOh that was too fast for me.
URL problem, I add a short URL pointing to the right URL, it might change and they didn't work a redirect version (sourceforge)
Need to change the url for something like:
http://downloads.sourceforge.net/project/tcpdf/tcpdf_6_2_12.zip?r=http%3...
Comment #22
killua99 CreditAttribution: killua99 commentedPlus actually I'll to use the official Clone from github. In the past it wasnt there.
https://github.com/tecnickcom/TCPDF/archive/6.2.12.zip
I'll create a new issue for this.