Skip to content

Commit

Permalink
configure CI job to run doctest (PR #61)
Browse files Browse the repository at this point in the history
  • Loading branch information
mojavelinux committed Jul 26, 2017
1 parent c7c1ebe commit 0b61f07
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
10 changes: 10 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
dist: trusty
git:
depth: 2
language: ruby
rvm: 2.4.1
cache: bundler
env:
global:
- NOKOGIRI_USE_SYSTEM_LIBRARIES=true
script: bundle exec rake doctest
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ gemspec
# gem 'asciidoctor-doctest', :path => '/Users/carlson/dev/asciidoctor-doctest/'
gem 'asciidoctor-doctest', github: 'jxxcarlson/asciidoctor-doctest', ref: 'latex'

# FIXME temporarily downgrade Asciidoctor to pass tests
gem 'asciidoctor', '1.5.5'

# gem 'asciidoctor-doctest', :path => '/Users/carlson/.rvm/gems/ruby-2.3.0/gems/asciidoctor-doctest-1.5.2.dev'

Expand Down
3 changes: 1 addition & 2 deletions test/examples/asciidoc-html/env.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,5 @@ Buurem lok medes, nor. Paat for deng zu locnoop.
//.jsxgraph
[env.jsxgraph, width=200, height=200]
--
var board = JXG.JSXGraph.initBoard('box',
{boundingbox: [-10, 10, 10, -10], axis:true});
var board = JXG.JSXGraph.initBoard('box', {boundingbox: [-10, 10, 10, -10], axis:true});
--
3 changes: 1 addition & 2 deletions test/examples/html/env.html
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,7 @@
<script src="//cdnjs.cloudflare.com/ajax/libs/jsxgraph/0.99.3/jsxgraphcore.js" type="text/javascript"></script><script src="http://jsxgraph.uni-bayreuth.de/distrib/GeonextReader.js" type="text/javascript"></script>
<div class="jxgbox" id="box" style="height: 200px; width: 200px;"></div>
<script type="text/javascript">
var board = JXG.JSXGraph.initBoard('box',
{boundingbox: [-10, 10, 10, -10], axis:true});
var board = JXG.JSXGraph.initBoard('box', {boundingbox: [-10, 10, 10, -10], axis:true});
</script><br>
</div>
</div>
Expand Down

0 comments on commit 0b61f07

Please sign in to comment.