This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // https://ocramius.github.io/blog/automated-code-coverage-check-for-github-pull-requests-with-travis/ | |
| $inputFile = $argv[1]; | |
| $percentage = min(100, max(0, (int) $argv[2])); | |
| if (!file_exists($inputFile)) { | |
| throw new InvalidArgumentException('Invalid input file provided'); | |
| } | |
| if (!$percentage) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Generic; | |
| using System.Globalization; | |
| using System.Linq; | |
| using Newtonsoft.Json; | |
| using Newtonsoft.Json.Converters; | |
| using Oxide.Core; | |
| using Oxide.Core.Plugins; | |
| using Oxide.Game.Rust; | |
| using Oxide.Game.Rust.Cui; |