Skip to content

Commit

Permalink
Merge pull request #10 from arve0/ci
Browse files Browse the repository at this point in the history
travis ci
  • Loading branch information
arve0 committed May 31, 2016
2 parents d7b0274 + fdb11b1 commit 493c7e5
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 24 deletions.
8 changes: 8 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
language: node_js
node_js:
- 'stable'
notifications:
email: false
addons:
apt_packages:
- pandoc
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![npm version](https://badge.fury.io/js/metalsmith-pandoc.svg)](https://badge.fury.io/js/metalsmith-pandoc)
[![npm version](https://badge.fury.io/js/metalsmith-pandoc.svg)](https://badge.fury.io/js/metalsmith-pandoc) [![Build Status](https://travis-ci.org/arve0/metalsmith-pandoc.svg?branch=master)](https://travis-ci.org/arve0/metalsmith-pandoc)

# metalsmith-pandoc
Wrap around [pdc](https://github.com/pvorb/node-pdc). Pandoc needs to be [system installed](http://pandoc.org/installing.html).
Expand Down
10 changes: 6 additions & 4 deletions test/expected-html/simple.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<p>This is a markdown dummy file for testing</p>
<h1 id="header-1">Header 1</h1>
<h1 id="header">Header</h1>
<p>text <em>italics</em> <strong>bold</strong></p>
<div class="sourceCode"><pre class="sourceCode python"><code class="sourceCode python"><span class="cf">for</span> f <span class="op">in</span> files:
<span class="bu">print</span>(f)</code></pre></div>
<h2 id="header2" class="withclass">Header2</h2>
<ul>
<li>item one</li>
<li>item two</li>
</ul>
<p>text</p>
13 changes: 5 additions & 8 deletions test/expected-rst/simple.rst
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
This is a markdown dummy file for testing

Header 1
========
Header
======

text *italics* **bold**

.. code:: python
- item one
- item two

for f in files:
print(f)
Header2
-------
text
14 changes: 5 additions & 9 deletions test/src/simple.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
This is a markdown dummy file for testing

# Header 1
text
*italics*
**bold**
# Header
text *italics* **bold**

```python
for f in files:
print(f)
```
- item one
- item two

## Header2 {.withclass}
text
4 changes: 2 additions & 2 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ describe('metalsmith-pandoc', function(){
.destination('build-html')
.build(function(err){
if (err) return done(err);
equal('test/expected-html', 'test/build-html');
equal('test/build-html', 'test/expected-html');
done();
});
});
Expand All @@ -24,7 +24,7 @@ describe('metalsmith-pandoc', function(){
.destination('build-rst')
.build(function(err){
if (err) return done(err);
equal('test/expected-rst', 'test/build-rst');
equal('test/build-rst', 'test/expected-rst');
done();
});
});
Expand Down

0 comments on commit 493c7e5

Please sign in to comment.