Skip to content

Commit

Permalink
Add support for jenkyll build automation
Browse files Browse the repository at this point in the history
* Add Travis-CI config file
* Add Rakefile
* Update _config.yaml file
* Update CNAME
  • Loading branch information
alexcoman committed Jan 5, 2016
1 parent 09d23c1 commit 2ba1d45
Show file tree
Hide file tree
Showing 5 changed files with 62 additions and 80 deletions.
16 changes: 10 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
sudo: false
language: ruby
cache: bundler
rvm:
- 2.1

install: gem install jekyll jekyll-paginate jemoji html-proofer
script: JEKYLL_ENV=production jekyll serve --baseurl "" --detach && htmlproof ./_site --disable-external --empty-alt-ignore

- 2.1.1
install: bundle install
script: bundle exec rake site:deploy --trace
branches:
only:
- master
env:
global:
- NOKOGIRI_USE_SYSTEM_LIBRARIES=true
- NOKOGIRI_USE_SYSTEM_LIBRARIES=true
- JEKYLL_ENV=production
Empty file added CNAME
Empty file.
13 changes: 13 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
source "https://rubygems.org"

require "json"
require "open-uri"
versions = JSON.parse(open("https://pages.github.com/versions.json").read)
ruby versions["ruby"]

gem "github-pages", versions["github-pages"]
gem "rake", "~> 10.1.1"
gem 'compass'
gem 'sass-media_query_combiner'
gem 'autoprefixer-rails'

111 changes: 38 additions & 73 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,33 @@
# Plugins
gems:
- jekyll-sitemap
- jekyll-paginate
- jemoji
safe: false

# Site settings

# NB! Set your site's url, otherwise stuff will break :)

url: "https://alexandrucoman.github.io"

# If you're hosting your site at a Project repository on GitHub pages
# (https://yourusername.github.io/repository-name)
# and NOT your user repository (https://yourusername.github.io)
# then add in the baseurl here, like this: "/repository-name"
#
# NB! Without this *nothing* will work, because it's used in every path :)

baseurl: "/labs.cloudbase.it"

# Google tracking id to track your visitors

google-tracking-id: "UA-35880426-4"
# Build Settings
markdown: kramdown
permalink: pretty
exclude:
- CONTRIBUTING
- CONTRIBUTORS
- README.md
- Rakefile
- Gemfile
- Gemfile.lock
- LICENSE
- .gitignore
- .travis.yml

# Forces https everywhere in your website, except when you serve it locally
# If you are not hosted on Github Pages, and your host doesn't support https
# then you should disable it
# Enable minification SASS
sass:
style: compressed

force-https: True
# Site settings
baseurl: ""
url: "labs.alexandrucoman.com"
google-tracking-id: ""

#############
# HTML Head #
#############

lang: "en"
author: "Cloudbase Solutions"
Expand All @@ -35,38 +36,26 @@ description: >
We are bringing OpenStack to the classroom and as part of our effort
we will teach, mentor and assist a group of 15 students.
keywords: "windows, linux, python, bash, powershell, openstack, hyper-v"
favicon: "/img/favicon.ico"
404-img: "/img/labtocat.png"

################
# Header layout #
################

favicon: "/img/favicon.ico"
black-favicon: "/img/black-lab-glass.ico"

################
# Web app mode #
################

404-img: "/img/labtocat.png"
web-app-mode: True

# Icons for Web App mode

icon-36p: "/img/web-app/icon-36p.png"
icon-48p: "/img/web-app/icon-48p.png"
icon-72p: "/img/web-app/icon-72p.png"
icon-96p: "/img/web-app/icon-96p.png"
icon-144p: "/img/web-app/icon-144p.png"
icon-192p: "/img/web-app/icon-192p.png"

########
# Blog #
########

# Blog
post-preview-words: 96

paginate: 5

# Share options
email-share: True
fb-share: True
twitter-share: True
Expand All @@ -82,10 +71,6 @@ disqus-shortname: "cloudbaselabs"

syntax-highlight: True

##################
# Social Buttons #
##################

social:
- title: "facebook"
url: "https://facebook.com/"
Expand All @@ -98,34 +83,14 @@ social:
- title: "rss"
url: "/feed.xml"

############
# 404 page #
############

404-img: "/img/labtocat.png"

################################################################################

# NB! Tread carefully if you want to change the variables below this point!

# Exclusion list from the generated _site

exclude: ["LICENSE", "README.md", "CONTRIBUTING", "CONTRIBUTORS", "scripts"]

# Pagination path

paginate_path: "blog/page:num/"

# Enable minification SASS
sass:
style: compressed

gems:
- jekyll-paginate
- jemoji

safe: false

# Build Settings
markdown: kramdown
permalink: pretty
# Settings for deploy rake task
username: "alexandrucoman"
repo: "labs.cloudbase.it"
branch: "master"
relative_source: "../labs.cloudbase.it/"
destination: "../labs.cloudbase.it-pages/"
production_url: "https://labs.alexandrucoman.com"
source_url: "https://github.com/alexandrucoman/labs.cloudbase.it"
2 changes: 1 addition & 1 deletion _data/iasi/timeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ events:
- image: "/img/timeline/pythocat.png"
date: "15 February"
description: ""
description: "If you liked, it is time to join the team !"

0 comments on commit 2ba1d45

Please sign in to comment.