File: test-site

package info (click to toggle)
ruby-jekyll-data 1.1.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 420 kB
  • sloc: ruby: 909; sh: 95; makefile: 10
file content (42 lines) | stat: -rwxr-xr-x 979 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/usr/bin/env bash
# Runs the `jekyll build` command with various switches and builds the default site as a sanity check

set -e

cd test/fixtures/test-site

if ! jekyll -v
then
  echo ""
  echo "Installing site dependencies"
  echo "----------------------------"
  BUNDLE_GEMFILE=Gemfile bundle install
fi

echo ""
echo "Building the site with default options"
echo "--------------------------------------"

if BUNDLE_GEMFILE=Gemfile bundle exec jekyll build --trace
then
  echo ""
  echo "Build Success."
  echo ""
  echo "Building the site with --verbose"
  echo "--------------------------------"
  BUNDLE_GEMFILE=Gemfile bundle exec jekyll build --verbose --trace

  echo ""
  echo "Build Success."
  echo ""
  echo "Building the site with --verbose and --show-data"
  echo "------------------------------------------------"
  BUNDLE_GEMFILE=Gemfile bundle exec jekyll build --verbose --show-data --trace

  exit 0
else
  echo ""
  echo "Error building site."

  exit 1
fi