Skip to content

Fix Travis CI integration #137

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
language: ruby
cache:
- bundler
install:
- bundle install --path vendor/bundle
script:
- bundle exec rake build
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ gem "jekyll-sitemap"
gem "jekyll-gist"
gem 'jekyll-mentions'
gem 'jekyll-feed'
gem 'rake'
gem 'kramdown'
32 changes: 32 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#############################################################################
# Helper functions
#############################################################################

def with_bundler(command)
sh "bundle exec #{command}"
end

def jekyll(command)
with_bundler "jekyll #{command}"
end

#############################################################################
# Standard tasks
#############################################################################

task :default => :build

desc 'Cleanup generated files'
task :clean do
sh 'rm -rf _site'
end

desc 'Build the site'
task build: [:clean] do
jekyll :build
end

desc 'Serve the site locally and watch for changes'
task serve: [:clean] do
jekyll 'serve --drafts --incremental --watch'
end