add github commit age checking

This commit is contained in:
Moshe Immerman 2017-09-17 12:03:30 +02:00 committed by Tobias Gesellchen
parent 32d54ea5e7
commit 126b1bfac8

View File

@ -1,7 +1,11 @@
language: ruby
rvm:
- 2.2
- 2.3.1
before_script:
- gem install awesome_bot
- git clone https://github.com/moshe-immerman/awesome_bot.git && cd awesome_bot
- gem build awesome_bot.gemspec
- gem install awesome_bot*.gem http
script:
- awesome_bot README.md --white-list wiki/Installing,slideshare,awesome-docker.svg,edit/master,sindresorhus/awesome,ashmckenzie,shortcircuit.net.au,photo777.org,adrianmouat,redhat,viget,meros,toedter,datadoghq,amazon.cn,blog.codeship.com,swarm-v-fleet,amazon.com,blogs.splunk.com,docs.mesosphere.com,containership.io,gliderlabs.com,twistlock.com,shipyard-project.com,dashboard.tutum.co,vimeo.com,docs.microsoft.com,eclipse.org,codenvy.io,gitter.im,sebgoa.blogspot.be,mindmeister.com
- git diff master..`git rev-parse --abbrev-ref HEAD` README.md | grep + > CHANGED.md
- awesome_bot CHANGED.md --github-age 500
- awesome_bot README.md --white-list wiki/Installing,slideshare,awesome-docker.svg,edit/master,sindresorhus/awesome,ashmckenzie,shortcircuit.net.au,photo777.org,adrianmouat,redhat,viget,meros,toedter,datadoghq,amazon.cn,blog.codeship.com,swarm-v-fleet,amazon.com,blogs.splunk.com,docs.mesosphere.com,containership.io,gliderlabs.com,twistlock.com,shipyard-project.com,dashboard.tutum.co,vimeo.com,docs.microsoft.com,eclipse.org,codenvy.io,gitter.im,sebgoa.blogspot.be,mindmeister.com