mirror of
https://github.com/dkhamsing/open-source-ios-apps.git
synced 2024-11-23 21:34:39 +03:00
[script] get links (#329)
This commit is contained in:
parent
c42a62c1c8
commit
2ec6f6a088
18
.github/osia_get_links.rb
vendored
Normal file
18
.github/osia_get_links.rb
vendored
Normal 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 }
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user