File tree 5 files changed +43
-8
lines changed
5 files changed +43
-8
lines changed Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env sh
2
+
3
+ VALIDATOR_NU_VERSION=16.6.29
4
+ VALIDATOR_NU_PORT=8888
5
+ VALIDATOR_NU_ZIP=vnu.jar_${VALIDATOR_NU_VERSION} .zip
6
+ VALIDATOR_NU_DL_BASE=" https://github.com/validator/validator/releases/download"
7
+ VALIDATOR_NU_DL_URL=" ${VALIDATOR_NU_DL_BASE} /${VALIDATOR_NU_VERSION} /${VALIDATOR_NU_ZIP} "
8
+ VALIDATOR_NU_DEST=" ${HOME} /validator"
9
+ VALIDATOR_NU_PATH=" ${VALIDATOR_NU_DEST} /dist/vnu.jar"
10
+
11
+ if [ ! -f " ${VALIDATOR_NU_PATH} " ]; then
12
+ wget " ${VALIDATOR_NU_DL_URL} " -O " /tmp/${VALIDATOR_NU_ZIP} "
13
+ unzip -o -d " ${VALIDATOR_NU_DEST} " " /tmp/${VALIDATOR_NU_ZIP} "
14
+ fi
15
+
16
+ echo " Validator.nu version"
17
+ java -jar " ${VALIDATOR_NU_PATH} " --version
18
+
19
+ nohup java -cp " ${VALIDATOR_NU_PATH} " nu.validator.servlet.Main \
20
+ " ${VALIDATOR_NU_PORT} " < /dev/null 2>&1 &
Original file line number Diff line number Diff line change 1
1
language : ruby
2
2
sudo : false
3
3
rvm : 2.3.1
4
+ jdk : oraclejdk8
5
+ env :
6
+ VALIDATOR_NU_URL : " http://0.0.0.0:8888/"
4
7
cache :
5
8
bundler : true
9
+ directories :
10
+ - " ${HOME}/validator"
11
+ before_script : ./.travis-install_start_validator_nu.sh
12
+ script :
13
+ - bundle exec rake check:markup
6
14
# Notifications, used by our Gitter channel.
7
15
notifications :
8
16
webhooks :
Original file line number Diff line number Diff line change @@ -13,5 +13,5 @@ gem 'rack-protection'
13
13
14
14
group :development do
15
15
gem 'spidr' , '~> 0.4'
16
- gem 'validate-website' , '~> 0.9 '
16
+ gem 'validate-website' , '~> 1.5.8 '
17
17
end
Original file line number Diff line number Diff line change 2
2
remote: https://rubygems.org/
3
3
specs:
4
4
colorator (0.1 )
5
+ crass (1.0.2 )
5
6
ffi (1.9.10 )
6
7
jekyll (3.1.5 )
7
8
colorator (~> 0.1 )
30
31
multipart_body (0.2.1 )
31
32
nokogiri (1.6.7.2 )
32
33
mini_portile2 (~> 2.0.0.rc2 )
33
- paint (0.9.0 )
34
+ paint (1.0.1 )
34
35
rack (1.6.4 )
35
36
rack-protection (1.5.3 )
36
37
rack
45
46
rouge (1.10.1 )
46
47
safe_yaml (1.0.4 )
47
48
sass (3.4.22 )
49
+ slop (4.3.0 )
48
50
spidr (0.5.0 )
49
51
nokogiri (~> 1.3 )
50
52
unicorn (5.1.0 )
51
53
kgio (~> 2.6 )
52
54
raindrops (~> 0.7 )
53
- validate-website (0.9.5 )
55
+ validate-website (1.5.8 )
56
+ crass (~> 1 )
54
57
multipart_body (~> 0.2 )
55
- paint (~> 0.8 )
56
- spidr (~> 0.4 )
58
+ paint (~> 1 )
59
+ slop (~> 4.2 )
60
+ spidr (~> 0.5 )
57
61
58
62
PLATFORMS
59
63
ruby
@@ -68,10 +72,10 @@ DEPENDENCIES
68
72
rouge (~> 1.10 )
69
73
spidr (~> 0.4 )
70
74
unicorn
71
- validate-website (~> 0.9 )
75
+ validate-website (~> 1.5.8 )
72
76
73
77
RUBY VERSION
74
78
ruby 2.3.1p112
75
79
76
80
BUNDLED WITH
77
- 1.12.3
81
+ 1.12.5
Original file line number Diff line number Diff line change @@ -206,7 +206,10 @@ namespace :check do
206
206
require 'jekyll'
207
207
options = Jekyll . configuration
208
208
Dir . chdir ( '_site' ) do
209
- system ( "validate-website-static --site '#{ options [ 'url' ] } /' --quiet" )
209
+ system ( "validate-website-static " \
210
+ "--verbose " \
211
+ "--exclude 'examples' " \
212
+ "--site '#{ options [ 'url' ] } /'" )
210
213
exit ( $?. exitstatus )
211
214
end
212
215
end
You can’t perform that action at this time.
0 commit comments