зеркало из https://github.com/twbs/bootlint.git
Rewrite .travis.yml to pure YAML and improve it.
* remove local Gemfile and use the one from the Bootstrap repo. * fix `jekyll` command; it should have been `bundle exec jekyll build` * specify `node` before cli scripts * fix Bootstrap _gh_pages check; before it only checked for 8 files, now it checks all of them
This commit is contained in:
Родитель
69c6306531
Коммит
b3b00f2096
|
@ -8,23 +8,18 @@ pids
|
|||
*.seed
|
||||
|
||||
# Directory for instrumented libs generated by jscoverage/JSCover
|
||||
lib-cov
|
||||
lib-cov/
|
||||
|
||||
# Coverage directory used by tools like istanbul
|
||||
coverage
|
||||
coverage/
|
||||
*-cov
|
||||
|
||||
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
|
||||
.grunt
|
||||
|
||||
# Compiled binary addons (http://nodejs.org/api/addons.html)
|
||||
build/Release
|
||||
|
||||
# Dependency directory
|
||||
# Deployed apps should consider commenting this line out:
|
||||
# see https://npmjs.org/doc/faq.html#Should-I-check-my-node_modules-folder-into-git
|
||||
node_modules
|
||||
|
||||
node_modules/
|
||||
/bootstrap/
|
||||
.bundle/
|
||||
vendor/
|
||||
|
||||
# Vim generated files
|
||||
*.swp
|
||||
|
|
68
.travis.yml
68
.travis.yml
|
@ -1,37 +1,31 @@
|
|||
{
|
||||
"sudo": false,
|
||||
"dist": "trusty",
|
||||
"language": "node_js",
|
||||
"node_js": ["4", "8"],
|
||||
"before_install": [
|
||||
"if [[ `npm -v` != 5* ]]; then npm install -g npm@5; fi"
|
||||
],
|
||||
"install": [
|
||||
"npm install -g grunt-cli",
|
||||
"npm install",
|
||||
"bundle install --deployment --jobs=3 --retry=3"
|
||||
],
|
||||
"before_script": [
|
||||
"git clone --depth 1 https://github.com/twbs/bootstrap.git --branch v3-dev",
|
||||
"pushd bootstrap && jekyll build; popd"
|
||||
],
|
||||
"matrix": [
|
||||
"fast_finish": true
|
||||
],
|
||||
"script": [
|
||||
"npm test",
|
||||
"./src/cli-main.js bootstrap/_gh_pages/**/index.html",
|
||||
"./src/cli-main.js --disable W003,E001 test/fixtures/doctype/missing.html test/fixtures/viewport/missing.html",
|
||||
"./src/cli-main.js test/fixtures/x-ua-compatible/missing.html &> x-ua-compatible-missing.output.actual.txt || true",
|
||||
"diff test/fixtures/cli/x-ua-compatible-missing.output.txt x-ua-compatible-missing.output.actual.txt"
|
||||
],
|
||||
"after_script": [
|
||||
"npm run coveralls"
|
||||
],
|
||||
"cache": {
|
||||
"directories": [
|
||||
"node_modules",
|
||||
"vendor/bundle"
|
||||
]
|
||||
}
|
||||
}
|
||||
sudo: false
|
||||
dist: trusty
|
||||
language: node_js
|
||||
git:
|
||||
depth: 10
|
||||
node_js:
|
||||
- "4"
|
||||
- "8"
|
||||
before_install:
|
||||
- if [[ `npm -v` != 5* ]]; then npm install -g npm@5; fi
|
||||
install:
|
||||
- npm install -g grunt-cli
|
||||
- npm install
|
||||
before_script:
|
||||
- git clone --depth 1 https://github.com/twbs/bootstrap.git --branch v3-dev
|
||||
- bundle install --deployment --path "$(pwd)/vendor/bundle" --gemfile bootstrap/Gemfile --jobs=3 --retry=3
|
||||
- pushd bootstrap && bundle exec jekyll build && popd
|
||||
script:
|
||||
- npm test
|
||||
- node ./src/cli-main.js "bootstrap/_gh_pages/**/index.html"
|
||||
- node ./src/cli-main.js --disable W003,E001 test/fixtures/doctype/missing.html test/fixtures/viewport/missing.html
|
||||
- node ./src/cli-main.js test/fixtures/x-ua-compatible/missing.html &> x-ua-compatible-missing.output.actual.txt || true
|
||||
- diff test/fixtures/cli/x-ua-compatible-missing.output.txt x-ua-compatible-missing.output.actual.txt
|
||||
after_script:
|
||||
- npm run coveralls
|
||||
matrix:
|
||||
fast_finish: true
|
||||
cache:
|
||||
directories:
|
||||
- node_modules
|
||||
- vendor/bundle
|
||||
|
|
5
Gemfile
5
Gemfile
|
@ -1,5 +0,0 @@
|
|||
source 'https://rubygems.org'
|
||||
|
||||
group :development, :test do
|
||||
gem 'jekyll', '~> 3.4.5'
|
||||
end
|
53
Gemfile.lock
53
Gemfile.lock
|
@ -1,53 +0,0 @@
|
|||
GEM
|
||||
remote: https://rubygems.org/
|
||||
specs:
|
||||
addressable (2.5.1)
|
||||
public_suffix (~> 2.0, >= 2.0.2)
|
||||
colorator (1.1.0)
|
||||
ffi (1.9.18)
|
||||
ffi (1.9.18-x64-mingw32)
|
||||
forwardable-extended (2.6.0)
|
||||
jekyll (3.4.5)
|
||||
addressable (~> 2.4)
|
||||
colorator (~> 1.0)
|
||||
jekyll-sass-converter (~> 1.0)
|
||||
jekyll-watch (~> 1.1)
|
||||
kramdown (~> 1.3)
|
||||
liquid (~> 3.0)
|
||||
mercenary (~> 0.3.3)
|
||||
pathutil (~> 0.9)
|
||||
rouge (~> 1.7)
|
||||
safe_yaml (~> 1.0)
|
||||
jekyll-sass-converter (1.5.0)
|
||||
sass (~> 3.4)
|
||||
jekyll-watch (1.5.0)
|
||||
listen (~> 3.0, < 3.1)
|
||||
kramdown (1.14.0)
|
||||
liquid (3.0.6)
|
||||
listen (3.0.8)
|
||||
rb-fsevent (~> 0.9, >= 0.9.4)
|
||||
rb-inotify (~> 0.9, >= 0.9.7)
|
||||
mercenary (0.3.6)
|
||||
pathutil (0.14.0)
|
||||
forwardable-extended (~> 2.6)
|
||||
public_suffix (2.0.5)
|
||||
rb-fsevent (0.10.2)
|
||||
rb-inotify (0.9.10)
|
||||
ffi (>= 0.5.0, < 2)
|
||||
rouge (1.11.1)
|
||||
safe_yaml (1.0.4)
|
||||
sass (3.5.1)
|
||||
sass-listen (~> 4.0.0)
|
||||
sass-listen (4.0.0)
|
||||
rb-fsevent (~> 0.9, >= 0.9.4)
|
||||
rb-inotify (~> 0.9, >= 0.9.7)
|
||||
|
||||
PLATFORMS
|
||||
ruby
|
||||
x64-mingw32
|
||||
|
||||
DEPENDENCIES
|
||||
jekyll (~> 3.4.5)
|
||||
|
||||
BUNDLED WITH
|
||||
1.15.3
|
Загрузка…
Ссылка в новой задаче