diff options
| author | Franck Cuny <fcuny@twitter.com> | 2016-01-12 19:25:52 -0800 |
|---|---|---|
| committer | Franck Cuny <fcuny@twitter.com> | 2016-01-12 19:28:09 -0800 |
| commit | 6454de866fde2576ab5df4b09b58bf6e812a82c6 (patch) | |
| tree | 7afb1be7bf98ee9fbb33bb98ea1902cf9c2a9046 | |
| parent | Fix the footer on small screen. (diff) | |
| download | lumberjaph-6454de866fde2576ab5df4b09b58bf6e812a82c6.tar.gz | |
Add a new target to run some tests.
Update the Makefile with a `test` target so we can check the generated
HTML and the internal links. The gem `html-proofer` is also added, and
we use it to run the test.
Closes #6
| -rw-r--r-- | .travis.yml | 9 | ||||
| -rw-r--r-- | Gemfile | 3 | ||||
| -rw-r--r-- | Gemfile.lock | 35 | ||||
| -rw-r--r-- | Makefile | 3 | ||||
| -rw-r--r-- | README.md | 4 |
5 files changed, 51 insertions, 3 deletions
diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..2dbfb64 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,9 @@ +language: ruby +rvm: + - 2.1 +script: + - make deps + - make test +env: + global: + - NOKOGIRI_USE_SYSTEM_LIBRARIES=true # speeds up installation of html-proofer @@ -1,4 +1,5 @@ source 'https://rubygems.org' gem 'jekyll' gem 'RedCloth' -gem 'redcarpet'
\ No newline at end of file +gem 'redcarpet' +gem 'html-proofer' diff --git a/Gemfile.lock b/Gemfile.lock index 5a1e6b9..5d8604f 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -2,14 +2,35 @@ GEM remote: https://rubygems.org/ specs: RedCloth (4.2.9) + activesupport (4.2.5) + i18n (~> 0.7) + json (~> 1.7, >= 1.7.7) + minitest (~> 5.1) + thread_safe (~> 0.3, >= 0.3.4) + tzinfo (~> 1.1) + addressable (2.4.0) classifier (1.3.3) fast-stemmer (>= 1.0.0) colorator (0.1) + colored (1.2) commander (4.1.5) highline (~> 1.6.11) directory_watcher (1.4.1) + ethon (0.8.1) + ffi (>= 1.3.0) fast-stemmer (1.0.2) + ffi (1.9.10) highline (1.6.19) + html-proofer (2.6.1) + activesupport (~> 4.2) + addressable (~> 2.3) + colored (~> 1.2) + mercenary (~> 0.3.2) + nokogiri (~> 1.5) + parallel (~> 1.3) + typhoeus (~> 0.7) + yell (~> 2.0) + i18n (0.7.0) jekyll (1.2.1) classifier (~> 1.3) colorator (~> 0.1) @@ -20,20 +41,34 @@ GEM pygments.rb (~> 0.5.0) redcarpet (~> 2.3.0) safe_yaml (~> 0.7.0) + json (1.8.3) liquid (2.5.3) maruku (0.7.0) + mercenary (0.3.5) + mini_portile2 (2.0.0) + minitest (5.8.3) + nokogiri (1.6.7.1) + mini_portile2 (~> 2.0.0.rc2) + parallel (1.6.1) posix-spawn (0.3.6) pygments.rb (0.5.2) posix-spawn (~> 0.3.6) yajl-ruby (~> 1.1.0) redcarpet (2.3.0) safe_yaml (0.7.1) + thread_safe (0.3.5) + typhoeus (0.8.0) + ethon (>= 0.8.0) + tzinfo (1.2.2) + thread_safe (~> 0.1) yajl-ruby (1.1.0) + yell (2.0.5) PLATFORMS ruby DEPENDENCIES RedCloth + html-proofer jekyll redcarpet @@ -9,3 +9,6 @@ server: clean deps: bundle install --path vendor/bundle + +test: build + bundle exec htmlproof ./_site --only-4xx --check-html --disable-external @@ -1,4 +1,4 @@ -# lumberjaph.net +# franckcuny.github.io ## Setup @@ -20,4 +20,4 @@ of useful commands: ## Publish -Just run `git push`. +Start by running `make test` to check that everything is fine. Then run `git push`. |
