Skip to content

Commit

Permalink
Fix Travis issues
Browse files Browse the repository at this point in the history
  • Loading branch information
gyulavoros committed Aug 8, 2017
1 parent 69b2d96 commit 57e737f
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ before_script:

script: ./scripts/build.sh

sudo: false

after_success:
- ./scripts/deploy.sh

branches:
only:
- master

sudo: false
4 changes: 3 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ gem 'jekyll-paginate'
gem 'jekyll-seo-tag'
gem 'jekyll-sitemap'
gem 'rouge'
gem "mini_magick"
gem 'mini_magick'
gem 'nokogiri'
gem 'httparty'

group :jekyll_plugins do
gem 'algoliasearch-jekyll', '~> 0.8.0'
Expand Down
5 changes: 5 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ GEM
parallel (~> 1.3)
typhoeus (~> 0.7)
yell (~> 2.0)
httparty (0.15.6)
multi_xml (>= 0.5.2)
httpclient (2.8.3)
i18n (0.8.4)
jekyll (3.4.3)
Expand Down Expand Up @@ -77,6 +79,7 @@ GEM
mini_magick (4.8.0)
mini_portile2 (2.2.0)
minitest (5.10.2)
multi_xml (0.6.0)
multipart-post (2.0.0)
nokogiri (1.8.0)
mini_portile2 (~> 2.2.0)
Expand Down Expand Up @@ -111,13 +114,15 @@ PLATFORMS
DEPENDENCIES
algoliasearch-jekyll (~> 0.8.0)
html-proofer
httparty
jekyll (~> 3.4.3)
jekyll-archives
jekyll-gist
jekyll-paginate
jekyll-seo-tag
jekyll-sitemap
mini_magick
nokogiri
rouge

BUNDLED WITH
Expand Down
1 change: 1 addition & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ words_per_minute: 200
# include _Pages
include: ["_pages"]
exclude:
- vendor
- resources
- Gemfile
- Gemfile.lock
Expand Down
5 changes: 4 additions & 1 deletion scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@

set -e

ruby json-crawler.rb
cd scripts && ruby json-crawler.rb && cd ..

bundle exec jekyll build

cd scripts && ruby html-cleaner.rb && cd ..

bundle exec jekyll algolia push

# bundle exec htmlproofer ./_site --disable-external
3 changes: 2 additions & 1 deletion scripts/html-cleaner.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
class Clean

require 'bundler/setup'
require 'open-uri'
require 'uri'
require 'net/https'
require 'nokogiri'
require 'HTTParty'
require 'httparty'
require 'rubygems'
require 'pp'

Expand Down
3 changes: 2 additions & 1 deletion scripts/json-crawler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@ class Crawl

#CONSTANT = ""
#@@variable = ""
require 'bundler/setup'
require 'open-uri'
require 'uri'
require 'net/https'
require 'nokogiri'
require 'HTTParty'
require 'httparty'
require 'rubygems'
require 'json'
require 'pp'
Expand Down

0 comments on commit 57e737f

Please sign in to comment.