From b02c8a555b86a8df5cf541f8122efc1259335c46 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jean-No=C3=ABl=20Avila?= <jn.avila@free.fr>
Date: Sun, 23 Dec 2018 11:31:26 +0100
Subject: [PATCH] Add travis support

---
 .travis.yml | 16 ++++++++++++++++
 Gemfile     | 15 +++++++++++++++
 ci/build.sh |  6 ++++++
 3 files changed, 37 insertions(+)
 create mode 100644 .travis.yml
 create mode 100644 Gemfile
 create mode 100755 ci/build.sh

diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..46d7d52
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,16 @@
+language: ruby
+sudo: false
+cache: bundler
+before_install:
+ - git clone https://github.com/jnavila/po4a.git
+ - cd po4a && git checkout git_doc && cd ..
+script:
+ - sh ci/build.sh
+addons:
+  apt:
+    packages:
+      - libunicode-linebreak-perl
+notifications:
+  email:
+    on_success: never
+    on_failure: always
diff --git a/Gemfile b/Gemfile
new file mode 100644
index 0000000..39dabe6
--- /dev/null
+++ b/Gemfile
@@ -0,0 +1,15 @@
+source 'https://rubygems.org'
+
+gem 'asciidoctor', '1.5.6.1'
+
+gem 'json'
+gem 'awesome_print'
+
+gem 'asciidoctor-epub3', :git => 'https://github.com/asciidoctor/asciidoctor-epub3'
+gem 'asciidoctor-pdf', '1.5.0.alpha.16'
+gem 'asciidoctor-pdf-cjk', '~> 0.1.3'
+gem 'asciidoctor-pdf-cjk-kai_gen_gothic', '~> 0.1.1'
+
+gem 'coderay'
+gem 'pygments.rb'
+gem 'thread_safe'
diff --git a/ci/build.sh b/ci/build.sh
new file mode 100755
index 0000000..f393c65
--- /dev/null
+++ b/ci/build.sh
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+export PERLLIB=$(pwd)/po4a/lib
+export PERL5LIB=$(pwd)/po4a/lib
+export PATH=$PATH:$(pwd)/po4a
+bundle exec make all
-- 
GitLab