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
Fix tests and improve CI #590
Conversation
4c8cd98
to
4bcce27
Compare
@Jocs Can you please take a look at this error message. I got the same error with node
If someone need a dockerfile: FROM ubuntu:18.04
ENV DEBIAN_FRONTEND noninteractive
ENV DEBCONF_NONINTERACTIVE_SEEN true
ENV TZ UTC
RUN apt-get update -y && apt-get install -y -q apt-transport-https apt-utils software-properties-common ca-certificates curl wget
RUN curl -sL https://deb.nodesource.com/setup_8.x | bash -
RUN apt-get update -y && apt-get install -y -q nodejs
# RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
# RUN apt-add-repository "deb https://dl.yarnpkg.com/debian/ stable main"
# RUN apt-get update -y && apt-get install -y -q yarn
RUN apt-get update -y
RUN apt-get install --no-install-recommends -y -q \
git make clang \
libgconf2-dev libnss3 libasound2 libxtst-dev libxss1 libnotify4 libxtst6 xdg-utils libglib2.0-bin gvfs-bin \
libgnome-keyring-dev icnsutils graphicsmagick xz-utils xvfb libx11-dev libxkbfile-dev \
curl firefox
ENV CC clang
ENV CXX clang++
ENV npm_config_clang 1
# ENV PATH $PATH:/opt/yarn/bin
RUN $CC --version
RUN $CXX --version
RUN node --version
# RUN yarn --version
RUN npm --version
ENV MARKTEXT_IS_OFFICIAL_RELEASE 1
ENV MARKTEXT_EXIT_ON_ERROR 1
# TODO: clone git repo
ADD marktext /home/dev/marktext
WORKDIR /home/dev/marktext
RUN npm install
#RUN npm run lint
ENV DISPLAY :99.0
RUN xvfb-run --server-args="-screen 0 1024x768x24" npm run test |
Very strange, @Jocs BTW we have different application title on macOS |
const blocks = ctx.contentState.getBlocks() | ||
const exportedMarkdown = new ExportMarkdown(blocks).generate() | ||
|
||
// FIXME: We always need to add a new line at the end of the document. Add a option to disable the new line. |
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.
Do you mean we need add an option to disable add new line when generating the markdown text? or we don't need to add new line?
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.
I think it's a cool feature to insert a new line at the end of a document but it should exists an option to disable it. I had troubles with pure strings like const s = '# heading'
initially because I had to insert a new line to each test.
Great work!
What's |
Nice work! |
Basically it allows us the run GUI applications on a machine with no display and no physical input devices. macOS and Windows support these "virtual screens" out of the box. @Jocs During the muya rewrite you should create a TOC list during parsing the document. My solution is not implemented well because we parse the document twice when the TOC sidebar is opened - same as the previous |
OK, I'll take it into consideration. |
Description
xvfb
) on Linuxmocha
timeout when using a non-interactive terminalmarkdown-toc
issuewhile parsing the documentresolves #288