Closed thbar closed 10 years ago
Configuration for Travis CI was written but some errors appear when building.
This is fixed by #24.
Travis problem was that database was not properly migrated. Actually,
no migration was run at all, since rake db:migrate
crashed, with the
error : "host required".
It appears it was vlad library that was redefining the "role" method.
haha, vlad was impaled!
PDF tests fail :(
This works perfectly well on local, it seems to be travis specific.
Given where it happens (when trying to create the file, not to read it) and provided the error (no such file or directory), I suspect the problem is that path is relative : "tmp/sessioncard#{@session.id}.pdf"
It seems to mean that "tmp/" does not exist where command is issued. I'm gonna give a try to setting an absolute path, but we won't know if it works until travis run it, so please to merge the PR right away when it comes.
I suspect you'll have to create the tmp folder unless it already exist...
folder = Rails.root.join('tmp')
FileUtils.mkdir(folder) unless File.exists?(folder)
PR didn't fixed it.
I suspect you'll have to create the tmp folder unless it already exist...
Indeed, you're right : I just realized that tmp folder is ignored altogether.
Modifying pull request.
Ok, fixed and all green : #25
:+1:
L'intégration continue va nous aider.