Added travis CI

Signed-off-by: Jim Martens <github@2martens.de>
This commit is contained in:
Jim Martens 2017-12-25 20:24:33 +01:00
parent 97b5ddb981
commit d93df4bdca
4 changed files with 42 additions and 0 deletions

24
.travis.yml Normal file
View File

@ -0,0 +1,24 @@
language: ruby
rvm:
- 2.3.3
addons:
ssh_known_hosts: wolf.uberspace.de
env:
global:
- NOKOGIRI_USE_SYSTEM_LIBRARIES=true
sudo: false
script: jekyll build && htmlproofer ./_site
before_deploy:
- openssl aes-256-cbc -K $encrypted_518a90de15e0_key -iv $encrypted_518a90de15e0_iv
-in deploy_ed25519.enc -out deploy_ed25519 -d
- eval "$(ssh-agent -s)"
- chmod 600 /tmp/deploy_ed25519
- ssh-add /tmp/deploy_ed25519
deploy:
provider: script
skip_cleanup: true
script:
- rsync -r --delete-after --quiet $TRAVIS_BUILD_DIR/.ssh martens7@wolf.uberspace.de:tmp/$TRAVIS_BUILD_ID
- ssh martens7@wolf.uberspace.de rm -rf tmp/old.build && mkdir tmp/old.build && mv html/* tmp/old.build/ && mv tmp/$TRAVIS_BUILD_ID/* html/
on:
branch: master

View File

@ -2,6 +2,7 @@ source 'https://rubygems.org'
# gem 'github-pages', group: :jekyll_plugins
gem 'activesupport'
# gem 'github-pages-health-check'
gem 'html-proofer', group: :development
gem 'jekyll'
group :jekyll_plugins do
gem 'autoprefixer-rails'

View File

@ -19,6 +19,7 @@ GEM
execjs
coffee-script-source (1.11.1)
colorator (1.1.0)
colorize (0.8.1)
commonmarker (0.17.7.1)
ruby-enum (~> 0.5)
concurrent-ruby (1.0.5)
@ -36,6 +37,15 @@ GEM
html-pipeline (2.7.1)
activesupport (>= 2)
nokogiri (>= 1.4)
html-proofer (3.7.6)
activesupport (>= 4.2, < 6.0)
addressable (~> 2.3)
colorize (~> 0.8)
mercenary (~> 0.3.2)
nokogiri (~> 1.8.1)
parallel (~> 1.3)
typhoeus (~> 0.7)
yell (~> 2.0)
i18n (0.9.1)
concurrent-ruby (~> 1.0)
jekyll (3.6.2)
@ -162,6 +172,7 @@ GEM
mini_portile2 (~> 2.3.0)
octokit (4.7.0)
sawyer (~> 0.8.0, >= 0.5.3)
parallel (1.12.1)
pathutil (0.16.1)
forwardable-extended (~> 2.6)
popper_js (1.12.9)
@ -194,6 +205,7 @@ GEM
tzinfo (1.2.4)
thread_safe (~> 0.1)
unicode-display_width (1.3.0)
yell (2.0.7)
PLATFORMS
ruby
@ -202,6 +214,7 @@ DEPENDENCIES
activesupport
autoprefixer-rails
bootstrap (~> 4.0.0.beta2)
html-proofer
jekyll
jekyll-assets
jekyll-avatar

4
deploy_ed25519.enc Normal file
View File

@ -0,0 +1,4 @@
¼¡ê¦$wÀ‰¢ Ÿu*UfÛ·4«æÖV?ÁÅq»cÊK!òº+ºh °B ²GS¸-'¨ˆ@è*ãPÌ:ó-ÚÈgqªsÅÆ ,"U@Cš7a<37>~ÉLÓš^íš>|F½ê8˜ 㦭&¤3G¦akjùÿO¶#“¸VYv&
ø;„d<Á˜_À1Nª>>á¼ç½Lcc ><3E>y¿éó¤f3ŸÒHíŸz
Ÿ
O¼øÿYrÉh<>¶4Q…<51>F=½sûÓ7mòû?Þ<>6„Î×/âT/¸Ø[yÎ!ÖÁN?çÓ¯Kª!Õ<>ц¸FÄÌÊ&Üÿ< r~<7E>ac-H>ù\íºÁtM…<4D>{ÉŽ]*/Š¾"Ð~ÎÿŽ~äk íBvM{5Kãjç¡<C3A7>ŨRS´%ƒ3LÍÙŠáã,ËþëßO5³f`ûÑxŸ~tQYâ7Á§ÉI{Ö‹Ë~=kËz—:P÷žuUá%Ü@Ý“xÒ× 1:ß©d£¾˜™UOåý)ADL˜