-
Notifications
You must be signed in to change notification settings - Fork 150
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create scripts and Docker Compose file for easier testing (#21)
* Create scripts and Docker Compose file * Remove unnecessary options from _config.yml
- Loading branch information
1 parent
a38418d
commit 7e65a83
Showing
8 changed files
with
53 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,6 @@ | ||
vendor/ | ||
_site/ | ||
.sass-cache/ | ||
.jekyll-cache/ | ||
.jekyll-metadata | ||
.bundle/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
source "https://rubygems.org" | ||
|
||
gem "github-pages", ">= 200" | ||
gem "minitest" | ||
gem "test-unit" | ||
gem 'github-pages', group: :jekyll_plugins |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,3 @@ | ||
# Name of your blog (this will show up at the top of your page and in the RSS feed) | ||
# Set name to prevent title from displaying at the top of the page | ||
# https://github.com/pages-themes/primer/issues/21#issuecomment-440722302 | ||
name: GitHub Games | ||
|
||
# Short description (goes below the title; it will also be used in the RSS feed) | ||
description: This GitHub Games has lots of tests | ||
|
||
# Your name, as you want it to appear underneath each post and in the footer | ||
author: GitHub Training, but forked | ||
|
||
# Your email if you want it to be linked on the contact page | ||
author_email: [email protected] | ||
|
||
# The directory for category index pages. Change it to something else if | ||
# for example you want links like /categories/category1 instead of /category1 | ||
category_dir: / | ||
|
||
# Uncomment if you are planning to run the blog in a subdirectory | ||
# Note - if you enable this, and attempt to view your site locally you have to use the baseurl in your local path. | ||
# Example, you must use http://localhost:4000/path/to/blog | ||
#baseurl: /path/to/blog | ||
# baseurl: | ||
|
||
# The URL of your actual domain. This will be used to make absolute links in the RSS feed. | ||
# url: http://yourdomain.com/ | ||
|
||
#### Under the Hood Stuff ##### | ||
|
||
# Use rdiscount as the markdown engine because it generates html5 compliant code for stuff like footnotes | ||
# If you use maroku (default engine) some of your generated pages may not validate or lint as html5 | ||
# If you don't have it install it via gem install rdiscount | ||
markdown: kramdown | ||
|
||
# Makes pretty (descriptive) permalinks. See Jekyll docs for alternatives. | ||
permalink: pretty | ||
|
||
# How many articles do you wish to appear on the front page: | ||
paginate: 3 | ||
|
||
# Exclude metadata and development time dependencies (like Grunt plugins) | ||
# exclude: [README.markdown, package.json, grunt.js, Gruntfile.js, Gruntfile.coffee, node_modules] | ||
gems: [jekyll-paginate] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
version: '3' | ||
services: | ||
jekyll: | ||
image: 'jekyll/jekyll:3.8' | ||
volumes: | ||
- "$PWD:/srv/jekyll" | ||
ports: | ||
- '4000:4000' | ||
command: jekyll serve --incremental | ||
tty: true |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/usr/bin/env bash | ||
# | ||
# Start the application | ||
|
||
# Exit if docker-compose is not in PATH | ||
if ! command -v docker-compose &>/dev/null; then | ||
echo "Error! Missing dependency: docker-compose. Please install and try again." | ||
exit 1 | ||
fi | ||
|
||
# Exit if the Docker daemon isn't running | ||
if ! docker info &>/dev/null; then | ||
echo "The Docker daemon doesn't appear to be running. Please start Docker and try again." | ||
exit 1 | ||
fi | ||
|
||
# Remove _site directory if it exits | ||
[[ -d _site ]] && rm -r _site | ||
|
||
docker-compose up --build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/usr/bin/env bash | ||
# | ||
# Test the app - if the game loads, everything is working! | ||
|
||
# Create symlink to test game | ||
ln -s inde.html index.html | ||
|
||
# Remove symlink on script exit | ||
trap "rm index.html" EXIT | ||
|
||
# Start app | ||
script/server |