Skip to content

Commit

Permalink
Merge pull request github-linguist#2955 from github/verify-licenses
Browse files Browse the repository at this point in the history
Verify licenses on CI
  • Loading branch information
bkeepers committed Apr 16, 2016
2 parents c3145d3 + 03ef4f3 commit 8ea9632
Show file tree
Hide file tree
Showing 12 changed files with 10 additions and 254 deletions.
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ addons:
- libicu-dev
- libicu48
before_install: script/travis/before_install
script:
- bundle exec rake
- script/licensed verify
rvm:
- 2.0.0
- 2.1
Expand Down
9 changes: 6 additions & 3 deletions script/licensed
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,11 @@ source = Licensed::Source::Filesystem.new("vendor/grammars/*/", type: "grammar")
config = Licensed::Configuration.new
config.sources << source

if ARGV[0] == "verify"
Licensed::Command::Verify.new(config).run
command = if ARGV[0] == "verify"
Licensed::Command::Verify.new(config)
else
Licensed::Command::Cache.new(config).run(force: true)
Licensed::Command::Cache.new(config)
end

command.run
exit command.success?
2 changes: 1 addition & 1 deletion vendor/licenses/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ reviewed:

sources:
npm: false
rubygem: true
rubygem: false
9 changes: 0 additions & 9 deletions vendor/licenses/grammar/prolog.tmbundle.txt

This file was deleted.

26 changes: 0 additions & 26 deletions vendor/licenses/grammar/sublime-apl.txt

This file was deleted.

31 changes: 0 additions & 31 deletions vendor/licenses/rubygem/byebug.txt

This file was deleted.

28 changes: 0 additions & 28 deletions vendor/licenses/rubygem/charlock_holmes.txt

This file was deleted.

29 changes: 0 additions & 29 deletions vendor/licenses/rubygem/escape_utils.txt

This file was deleted.

30 changes: 0 additions & 30 deletions vendor/licenses/rubygem/github-linguist.txt

This file was deleted.

34 changes: 0 additions & 34 deletions vendor/licenses/rubygem/mime-types-data.txt

This file was deleted.

34 changes: 0 additions & 34 deletions vendor/licenses/rubygem/mime-types.txt

This file was deleted.

29 changes: 0 additions & 29 deletions vendor/licenses/rubygem/rugged.txt

This file was deleted.

0 comments on commit 8ea9632

Please sign in to comment.