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

[script] get links (#329)

This commit is contained in:
dkhamsing 2016-06-07 06:53:14 -07:00
parent c42a62c1c8
commit 2ec6f6a088
2 changed files with 22 additions and 2 deletions

18
.github/osia_get_links.rb vendored Normal file
View File

@ -0,0 +1,18 @@
require_relative 'osia_helper'
OUTPUT = 'temp-links'
def apps_archived(apps)
a = apps.select {|a| a['tags'] != nil }.select {|b| b['tags'].include?'archive'}
a.sort_by { |k, v| k['title'] }
end
j = get_json
a = j['projects']
archived = apps_archived a
links = a.reject { |x| archived.include? x }.map { |y| y['source']}
links.each_with_index { |z, i| puts "#{i+1} #{z}"}
puts "Writing #{OUTPUT}"
File.open(OUTPUT, 'w') { |f| f.puts links }

View File

@ -6,12 +6,14 @@ test:
- gem install awesome_bot
- sudo pip install json-spec
override:
- awesome_bot contents.json -a 403 -w developer.apple,preyproject,xbmc/xbmc,wheelmap.org
- ruby .github/osia_get_links.rb
- awesome_bot temp-links -a 403 -w xbmc/xbmc,wheelmap.org
- json validate --schema-file=.github/schema.json --document-file=contents.json
- ruby .github/osia_validate_categories.rb
general:
artifacts:
- "ab-results-contents.json.json"
- "temp-links"
- "ab-results-temp-links.json"
deployment:
master:
branch: master