diff --git a/.travis.yml b/.travis.yml index bbe3db4..1d262f9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,13 +2,11 @@ sudo: false dist: trusty -cache: - apt: true - language: php ## Cache composer downloads. cache: + apt: true directories: - $HOME/.cache/composer/files @@ -42,8 +40,12 @@ script: fi # Test the rulesets. - - vendor/bin/phpcs ./Test/ParagonieRandomCompatTest.php --standard=PHPCompatibilityParagonieRandomCompat --runtime-set testVersion 5.2 - - vendor/bin/phpcs ./Test/ParagonieSodiumCompatTest.php --standard=PHPCompatibilityParagonieSodiumCompat --runtime-set testVersion 5.3 + - vendor/bin/phpcs ./Test/ParagonieRandomCompatTest.php --standard=PHPCompatibilityParagonieRandomCompat --runtime-set testVersion 5.2- + - vendor/bin/phpcs ./Test/ParagonieSodiumCompatTest.php --standard=PHPCompatibilityParagonieSodiumCompat --runtime-set testVersion 5.3- + + # Check that the rulesets don't throw unnecessary errors for the compat libraries themselves. + - vendor/bin/phpcs ./vendor/paragonie/random_compat/ --standard=PHPCompatibilityParagonieRandomCompat --runtime-set testVersion 5.2- --ignore=/random_compat/tests/*,/random_compat/other/* + - vendor/bin/phpcs ./vendor/paragonie/sodium_compat/ --standard=PHPCompatibilityParagonieSodiumCompat --runtime-set testVersion 5.3- --ignore=/sodium_compat/tests/* # Validate the composer.json file. # @link https://getcomposer.org/doc/03-cli.md#validate diff --git a/composer.json b/composer.json index b2776c8..1704aa7 100644 --- a/composer.json +++ b/composer.json @@ -21,7 +21,9 @@ "phpcompatibility/php-compatibility" : "^9.0" }, "require-dev" : { - "dealerdirect/phpcodesniffer-composer-installer": "^0.5" + "dealerdirect/phpcodesniffer-composer-installer": "^0.5", + "paragonie/random_compat": "dev-master", + "paragonie/sodium_compat": "dev-master" }, "suggest" : { "dealerdirect/phpcodesniffer-composer-installer": "^0.5 || This Composer plugin will sort out the PHP_CodeSniffer 'installed_paths' automatically.",