Skip to content

Commit

Permalink
Add a script to profile docs with CI (#7540)
Browse files Browse the repository at this point in the history
Merge pull request 7540
  • Loading branch information
ashmaroli authored and jekyllbot committed Feb 20, 2019
1 parent 2786d67 commit 51d1366
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 1,4 @@
bundler_args: --without benchmark:site:development
bundler_args: --without benchmark:development
script: script/cibuild
cache: bundler
language: ruby
Expand All @@ -18,6 18,9 @@ matrix:
- rvm: *ruby1
env: TEST_SUITE=default-site
name: "🏠️ Default Site"
- rvm: *ruby1
env: TEST_SUITE=profile-docs
name: "Profile Docs"
exclude:
- rvm: *jruby
env: TEST_SUITE=cucumber
Expand Down
4 changes: 3 additions & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 11,16 @@ branches:
build: off

environment:
BUNDLE_WITHOUT: "benchmark:site:development"
BUNDLE_WITHOUT: "benchmark:development"
matrix:
- RUBY_FOLDER_VER: "26"
TEST_SUITE: "test"
- RUBY_FOLDER_VER: "26"
TEST_SUITE: "cucumber"
- RUBY_FOLDER_VER: "26"
TEST_SUITE: "default-site"
- RUBY_FOLDER_VER: "26"
TEST_SUITE: "profile-docs"
- RUBY_FOLDER_VER: "25"
TEST_SUITE: "test"
- RUBY_FOLDER_VER: "24"
Expand Down
10 changes: 10 additions & 0 deletions script/profile-docs
Original file line number Diff line number Diff line change
@@ -0,0 1,10 @@
#!/usr/bin/env bash
#
# Build Jekyll's Documentation site in 'debug' mode and outputs the site's profile stats.
# Helps detecting *hard* breaking-changes (`jekyll build` aborts) and optimizations
# in the `build` process.
#
# Usage: bash script/profile-docs

SOURCE_DIR=$PWD/docs
bundle exec jekyll build -s $SOURCE_DIR -d $SOURCE_DIR/_site --profile --trace --verbose

0 comments on commit 51d1366

Please sign in to comment.