diff --git a/.travis.yml b/.travis.yml index 950e14b..22c36ae 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,6 +6,12 @@ addons: packages: - dnsutils - jsonlint +before_install: + - if ! git diff --name-only $TRAVIS_COMMIT_RANGE | grep -qvE '(.md)|(.pem)|(.pdf)|(.html)|^(LICENSE)|^(docs)|^(utils)|^(bin)|(Dockerfile)' + then + echo "no code was updated, not running the CI." + exit + fi install: - cpanm --notest Test::More - cpanm --notest Data::Dumper