Skip to content
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

[WIP] Update suite to run against the latest #107

Merged
merged 19 commits into from Feb 14, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion Gemfile
Expand Up @@ -2,7 +2,7 @@ source "https://rubygems.org"

# Fixed, can be tricky changes in here.
gem 'rake'
gem 'nokogiri', '=1.5.5'
gem 'nokogiri', '~>1.6'
gem 'sass'
gem 'yui-compressor'
gem 'peach'
Expand Down
13 changes: 9 additions & 4 deletions Gemfile.lock
@@ -1,8 +1,10 @@
GEM
remote: http://rubygems.org/
remote: https://rubygems.org/
specs:
json (1.4.6)
nokogiri (1.5.5)
json (1.8.3)
mini_portile (0.6.2)
nokogiri (1.6.5)
mini_portile (~> 0.6.0)
peach (0.4)
rack (1.2.1)
rake (10.0.0)
Expand All @@ -14,9 +16,12 @@ PLATFORMS

DEPENDENCIES
json
nokogiri (= 1.5.5)
nokogiri (~> 1.6)
peach
rack
rake
sass
yui-compressor

BUNDLED WITH
1.10.6
34 changes: 10 additions & 24 deletions Makefile
Expand Up @@ -4,42 +4,28 @@ CURL=curl
PYTHON=python
RUBY=ruby
PATCH=patch
SPLITTER=html5-tools/spec-splitter/spec-splitter.py
SPLITTERFLAGS=--html5lib-serialiser

postprocess: clean-output process_assets LOG
bundle exec rake postprocess:execute
process: clean-output copy process_assets
bundle exec rake process:execute

LOG: index.html $(SPLITTER)
$(PYTHON) $(SPLITTER) $(SPLITTERFLAGS) $< ./public > LOG
multipage-dev.zip:
$(CURL) --compressed https://html5.org/temp/multipage-dev.zip > $@

index.html: html5-full.html anolis/anolis
$(PYTHON) anolis/anolis \
--parser=lxml.html \
--filter=.impl \
--output-encoding="ascii" \
$< $@
multipage-dev: multipage-dev.zip
unzip -o multipage-dev.zip

html5-full.html:
$(CURL) --compressed http://www.whatwg.org/specs/web-apps/current-work/dev-index > $@
$(RUBY) tidy.rb $@
copy: multipage-dev
cp -r multipage-dev/*.html public

process_assets:
$(RUBY) assets.rb

clean: clean-output
$(RM) html5-full.html
$(RM) -r multipage-dev
$(RM) multipage-dev.zip

clean-output:
$(RM) LOG
$(RM) -r public/**/*.html
$(RM) -r public/css/*.css
$(RM) -r public/javascript/*.js
$(RM) -r public/*.manifest

anolis/anolis:
$(HG) clone http://hg.hoppipolla.co.uk/anolis/
$(PATCH) -p1 -d anolis < patch.anolis

$(SPLITTER):
$(SVN) checkout http://html5.googlecode.com/svn/trunk/ html5-tools