Skip to content

Commit

Permalink
Add travis config
Browse files Browse the repository at this point in the history
  • Loading branch information
wjdp committed Jan 3, 2016
1 parent b3c7d00 commit 8ca6d8a
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 14 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
_extract/
_output/
kindlegen
tmp/
bin/
vendor/
.bundle
26 changes: 26 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
language: ruby
cache:
bundler: true
install:
- bundle install --jobs=3 --retry=3 --deployment --path=${BUNDLE_PATH:-vendor/bundle}
- mkdir -p bin tmp/kindlegen
- curl http://kindlegen.s3.amazonaws.com/kindlegen_linux_2.6_i386_v2_9.tar.gz > tmp/kindlegen.tar.gz
- tar zxvf tmp/kindlegen.tar.gz -C tmp/kindlegen
- mv tmp/kindlegen/kindlegen bin/
script:
- bundle exec rake build
git:
depth: 6
rvm:
- 2.1.2
deploy:
provider: releases
api_key:
secure: b5qYl10xNFZ689L6PVzyi0zw9zMK6hV+boB9tS+XLJ6+e4X9DNr4cUdfE8mTeYcuBmZTZZn8biYhy9L0dzkQgfubqFIPS15zO7RaXZDoMEf9jRnKEbtFE90NJIqYbCwwLlFDAsevul2EeVQFsk8Mgp3b96QrxNQaDdU/bJu/dzftgoGq3F03/coXPj42uOArRt0YA5eEpIQVChBEZRy03iYlwCu5BaI7WKEcs/PDvwlOm+jf3gIZuC7l/wi6e3Ixnh7eXX/FfF4WJCIVZC5eGhCfkOvYbf6u8tk9HrW296r4JjgvBR5VjtrRA8QXRGzjA7Q+A5hkj7/WCUwUIhzYOHnb5/73sNUHzo94k0P+uFBeJO0U1STPChdWNSVDX4hmkEvCpEuGcj+qaSkH7L8JuoCHeh/fZWB7dS1Xxb+sLzQnvG8V1m/og447RGmSVBpwh3f90XreHrmf+kKCJehBVmSAS7JsTo4HjzdWODSWZ9YG3PkSxPBxBOeu8uheiqUuwMonxfz6YoKZJCCEZ96WhCMc/FDpWUQdgAgYteacWDhZy3lptrQtzZuUbeQPADkwGiQUOZAMxnNxssjjp3Yym6vkbl0We6Qqx2ymU8KvEuv74v4RuD7CNKSnvedglc9Zq/8LvvaTE0gyMcV58q/KAIMdxEt9hyRjs31UoxfKFKM=
file:
- _output/gotdict.mobi
- _output/dic.html
on:
tags: true
repo: wjdp/gotdict
branch: master
1 change: 0 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@ source 'https://rubygems.org'

gem 'rake'
gem 'jekyll'
gem 'kindlegen'
2 changes: 0 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ GEM
sass (~> 3.2)
jekyll-watch (1.3.0)
listen (~> 3.0)
kindlegen (2.9.6)
kramdown (1.9.0)
liquid (3.0.6)
listen (3.0.5)
Expand All @@ -36,7 +35,6 @@ PLATFORMS

DEPENDENCIES
jekyll
kindlegen
rake

BUNDLED WITH
Expand Down
11 changes: 1 addition & 10 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,13 +1,4 @@
require 'kindlegen'

task :build do
sh "bundle exec jekyll build"
sh "./kindlegen _output/dic.opf -c2 -verbose -dont_append_source -o gotdict.mobi"
sh "xdg-open _output/gotdict.mobi"
# Kindlegen.run("dic.opf", "-c2", "-verbose", "-dont_append_source", "-o", "dic-test.mobi")
end

task :test do
# sh "bundle exec jekyll build --profile"
Kindlegen.run("dic.opf", "-o", "dic-test.mobi")
sh "bin/kindlegen _output/dic.opf -c2 -verbose -dont_append_source -o gotdict.mobi"
end
1 change: 1 addition & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ markdown: kramdown
excerpt_separator: ""

exclude:
- vendor
- Gemfile
- Gemfile.lock
- Rakefile
Expand Down

0 comments on commit 8ca6d8a

Please sign in to comment.