1
0
mirror of https://github.com/dkhamsing/open-source-ios-apps.git synced 2024-12-22 21:38:44 +01:00

Check homepages (#331)

This commit is contained in:
dkhamsing 2016-06-07 20:05:24 -07:00
parent 6c298d75b5
commit 6ff7fcd16a
2 changed files with 18 additions and 4 deletions

View File

@ -1,6 +1,7 @@
require_relative 'osia_helper'
OUTPUT = 'temp-links'
OUTPUT = 'check-links.txt'
HP = 'check-homepages.txt'
def apps_archived(apps)
a = apps.select {|a| a['tags'] != nil }.select {|b| b['tags'].include?'archive'}
@ -22,3 +23,13 @@ links.each_with_index { |z, i| puts "#{i+1} #{z}" }
puts "Writing #{OUTPUT}"
File.open(OUTPUT, 'w') { |f| f.puts links }
hp = []
active.each do |z|
hp.push z['homepage'] unless z['homepage'].nil?
end
hp.each_with_index { |z, i| puts "#{i+1} #{z}" }
puts "Writing #{HP}"
File.open(HP, 'w') { |f| f.puts hp }

View File

@ -7,13 +7,16 @@ test:
- sudo pip install json-spec
override:
- ruby .github/osia_get_links.rb
- awesome_bot temp-links -a 403 -w xbmc/xbmc,wheelmap.org
- awesome_bot check-links.txt -a 403 -w xbmc/xbmc
- awesome_bot check-homepages.txt --allow-dupe -w wheelmap.org
- json validate --schema-file=.github/schema.json --document-file=contents.json
- ruby .github/osia_validate_categories.rb
general:
artifacts:
- "temp-links"
- "ab-results-temp-links.json"
- "check-links.txt"
- "check-homepages.txt"
- "ab-results-check-homepages.txt.json"
- "ab-results-check-links.txt.json"
deployment:
master:
branch: master