Skip to content

Commit 822f2cc

Browse files
committed
Adding travis-ci support.
1 parent 3b52ffe commit 822f2cc

File tree

5 files changed

+41
-1
lines changed

5 files changed

+41
-1
lines changed

.gitignore

+5-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
# Jekyll build
55
/_site/
66
.jekyll-metadata
7+
Gemfile.lock
78

8-
#
9+
# webstorm
910
.idea/
11+
12+
# others
13+
*.swp

.travis.yml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# from http://jekyllrb.com/docs/continuous-integration/
2+
language: ruby
3+
rvm:
4+
- 2.1
5+
- 2.2
6+
7+
before_script:
8+
- chmod +x ./cibuild.sh # or do this locally and commit
9+
10+
# Assume bundler is being used, therefore
11+
# the `install` step will run `bundle install` by default.
12+
script: ./cibuild.sh
13+
14+
# branch whitelist, only for GitHub Pages
15+
branches:
16+
only:
17+
- gh-pages # test the gh-pages branch
18+
19+
env:
20+
global:
21+
- NOKOGIRI_USE_SYSTEM_LIBRARIES=true # speeds up installation of html-proofer
22+

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11

22
# Vitae
33

4+
[![Build Status](https://secure.travis-ci.org/biomadeira/vitae.png?branch=gh-pages)](http://travis-ci.org/biomadeira/vitae)
5+
46
Personal homepage (curriculum vitae or resume) based on [João's](https://github.com/joaomoreno/resume).
57
Vitae is built with [skeleton](http://getskeleton.com/), powered by [Jekyll](http://jekyllrb.com/) and freely
68
hosted in [Github pages](https://pages.github.com/).

_config.yml

+2
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,5 @@ city: Edinburgh
3131
country: United Kingdom
3232
google_analytics: UA-69300817-1
3333

34+
# needed for travis-ci build
35+
exclude: [vendor]

cibuild.sh

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/usr/bin/env bash
2+
set -e # halt script on error
3+
4+
source "https://rubygems.org"
5+
gem "jekyll"
6+
gem "html-proofer"
7+
8+
bundle exec jekyll build
9+
bundle exec htmlproof ./_site --disable-external --only-4xx --check-html --check-favicon
10+

0 commit comments

Comments
 (0)