Permalink
Browse files

Add travis (#3)

* Adding initial Travis setup

 Code and approach based on https://github.com/felixrieseberg/travis-jekyll-git with some updates.
  • Loading branch information...
christophernhill committed Feb 13, 2018
1 parent 7579d4b commit 6cfe6a8668825bb8ca9a36c59b93d725d85a67cc
Showing with 45 additions and 7 deletions.
  1. +36 −0 .travis.yml
  2. +2 −0 Gemfile
  3. +1 −1 README.md
  4. +2 −0 _config.yml
  5. +1 −1 _includes/header.html
  6. +1 −1 _includes/social.html
  7. +0 −4 _layouts/home.html
  8. +2 −0 scripts/ci/build.sh
@@ -0,0 +1,36 @@
#
#
# Based on https://github.com/felixrieseberg/travis-jekyll-git/tree/4a8f6d505a7219b2d50e4d0b64f3ee4774016f5b
#
#
language: ruby
rvm:
- 2.5

install:
- bundle update
- bundle show
- bundle install
- gem install html-proofer jekyll-sitemap
script:
- . scripts/ci/build.sh
- /bin/ls -altr _site
- cat ./_site/feed.xml

# branch whitelist
branches:
only:
- gh-pages # test the gh-pages branch
- /pages-(.*)/ # test every branch which starts with "pages-"
- add-travis

env:
global:
- NOKOGIRI_USE_SYSTEM_LIBRARIES=true # speeds up installation of html-proofer

# deploy:
# skip_cleanup: true
# provider: script
# script: scripts/deploy.sh
# on:
# branch: gh-pages
@@ -0,0 +1,2 @@
source 'https://rubygems.org'
gem 'github-pages', group: :jekyll_plugins
@@ -41,7 +41,7 @@ channel for conversations.
<!--- ## Join us! --->

<a href="https://docs.google.com/forms/d/e/1FAIpQLScBQ6AYpYYK2wL21egcaVvH0ZEvtShU-0s-XbqnY3okUsyIZw/viewform">
<img width="250px" src="img/signup.png"></a>
<img width="250px" alt="signup button" src="img/signup.png"></a>

## What is a Research Software Engineer?

@@ -26,3 +26,5 @@ header_pages:
# Build settings
markdown: kramdown
theme: minima
gems:
- jekyll-feed
@@ -3,7 +3,7 @@
<div class="wrapper">
{% assign default_paths = site.pages | map: "path" %}
{% assign page_paths = site.header_pages | default: default_paths %}
<a class="site-title" href="{{ "/" | relative_url }}" alt="US RSE logo"><img height=50 src="img/logo.png"> {{ site.title | escape }}</a>
<a class="site-title" href="{{ "/" | relative_url }}"><img height=50 alt="USRSE logo" src="img/logo.png"> {{ site.title | escape }}</a>

{% if page_paths %}
<nav class="site-nav">
@@ -9,5 +9,5 @@
{% if site.twitter_username%}<li><a href="https://www.twitter.com/{{ site.twitter_username| cgi_escape | escape }}"><svg class="svg-icon"><use xlink:href="/assets/minima-social-icons.svg#twitter"></use></svg> <span class="username">{{ site.twitter_username| escape }}</span></a></li>{% endif %}
{% if site.youtube_username%}<li><a href="https://youtube.com/{{ site.youtube_username| cgi_escape | escape }}"><svg class="svg-icon"><use xlink:href="/assets/minima-social-icons.svg#youtube"></use></svg> <span class="username">{{ site.youtube_username| escape }}</span></a></li>{% endif %}
{% if site.googleplus_username%}<li><a href="https://plus.google.com/{{ site.googleplus_username| escape }}"><svg class="svg-icon"><use xlink:href="/assets/minima-social-icons.svg#googleplus"></use></svg> <span class="username">{{ site.googleplus_username| escape }}</span></a></li>{% endif %}
{% if site.rss %}<li><a href="{{ 'feed.xml' | relative_url }}"><svg class="svg-icon"><use xlink:href="/assets/minima-social-icons.svg#rss"></use></svg> <span>{{ site.rss | escape }}</span></a></li>{% endif %}
{% if site.rss%}<li><a href="{{ 'feedII.xml' | relative_url }}"><svg class="svg-icon"><use xlink:href="/assets/minima-social-icons.svg#rss"></use></svg> <span>{{ site.rss | escape }}</span></a></li>{% endif %}
</ul>
@@ -23,9 +23,5 @@ <h2>
{% endfor %}
</ul>

<!---
<p class="rss-subscribe">subscribe <a href="{{ "/feed.xml" | relative_url }}">via RSS</a></p>
--->


</div>
@@ -0,0 +1,2 @@
jekyll build
htmlproofer ./_site

0 comments on commit 6cfe6a8

Please sign in to comment.