-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rspec local image file processing #38
Conversation
505df1c
to
31a3df3
Compare
@w00lf I'd recommend you implement metanorma/coradoc#84 before this one because it's not easy setting up and use LibreOffice in all platforms... |
Yes, i have switched to it. Will return to this one after complete it. |
Sounds good, thanks! |
Fails on Windows:
|
181683d
to
f0ba495
Compare
Passes on Windows and Linux but fails on Mac? |
Yes, for some reason on Mac libreoffice cli tool hangs
чт, 12 дек. 2019 г. в 15:30, Ronald Tse <[email protected]>:
Passes on Windows and Linux but fails on Mac?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#38?email_source=notifications&email_token=AAI2XFFW5YUPFUDO6CCVYGDQYIVGLA5CNFSM4JSQ23MKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEGWQNKI#issuecomment-564987561>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAI2XFFITPWRSHYKEAOKLCTQYIVGLANCNFSM4JSQ23MA>
.
--
С уважением, Третьяков М.
|
@ronaldtse @opoudjis i have completed with github ci configuration. There is one issue with macos configuration - installed libreoffice cli tool freezes when i try to use it, so i have skipped it for now, left apropriate TODO for it, can you review changes and merge? |
Hi there, @CAMOBAP795, can you please review the code i wrote here to see if its ok? I have noticed your comment in here - https://github.com/metanorma/reverse_adoc/blob/master/.github/workflows/macos.yml#L1 is it ok if i change github action yaml? |
.github/workflows/ubuntu.yml
Outdated
- name: Update gems | ||
run: | | ||
gem install bundler -v "~> 2" | ||
bundle install --jobs 4 --retry 3 | ||
- name: Run specs | ||
run: | | ||
bundle exec rake | ||
- name: Test reverse_adoc binary |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The same as above may be better to keep them as ruby tests
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done, moved it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generally good but some comments need to be addressed
@w00lf potentially, how many repos will need LibreOffice too?
I'm asking because we have many repos with exactly the same CI configuration so we decided to move all configuration to single place https://github.com/metanorma/metanorma-build-scripts/tree/master/ci-master/config/gh-actions and apply it with https://github.com/metanorma/ci-master script
BTW @w00lf I didn't found the line where you call LibreOffice's cli tool, could you please point where it is?
Can tell for sure which repos need Libreoffice which dont, currently this repo need it because it uses this gem: https://github.com/benbalter/word-to-markdown in order to convert docx documents.
Its used inside |
I’m repeating myself but @camobap795 please do not add libreoffice to metanorma because THIS GEM IS NOT USED BY METANORMA. Thanks. 😉 |
@CAMOBAP795 can you please review again? Created separate specs for bin shell scripts, removed it from github actions. Also can you tell me how do you use rubocop in your project? I tried to use it from projects folder but it seems it uses completely different rules then the Hound does |
@opoudjis could you please help review this? Thanks! |
@CAMOBAP795 can you please review again? |
@@ -50,9 +51,11 @@ if ReverseAsciidoctor.config.external_images && ReverseAsciidoctor.config.destin | |||
end | |||
|
|||
ReverseAsciidoctor.config.sourcedir = Dir.mktmpdir | |||
# TODO: Check if needed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Placing TODO
is good practice, alongside with this I propose to report an issue also
Because sometimes those todo being ignored
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# puts "ReverseAsciidoctor.config.sourcedir #{ReverseAsciidoctor.config.sourcedir}" | ||
|
||
doc = WordToMarkdown.new(filename, ReverseAsciidoctor.config.sourcedir) | ||
# TODO: Check if needed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The same comment about TODO
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
subject(:convert) do | ||
ShellUtils.execute!("./bin/w2a -e -o test1 #{input_file_path}") | ||
end | ||
# TODO: fix github actions integration with libreoffice, currently it hangs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The same comment about TODO
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done - #41
end | ||
end | ||
|
||
# TODO: fix github actions integration with libreoffice, currently it hangs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The same comment about TODO
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done, #41
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good for me
P.S. my comment about TODO
comments up to you, it should not stop you from merging this PR
Two approvals and merging. @w00lf could you help create those issues? Thanks! |
Will do |
Added specs for ReverseAsciidoctor: docx and html convert with external URI-s to images
#32