2016-06-29 00:02:53 +02:00
|
|
|
language: perl
|
2020-05-02 18:34:10 +02:00
|
|
|
dist: bionic
|
2019-08-09 21:08:48 +02:00
|
|
|
perl:
|
|
|
|
- "5.26"
|
2016-06-29 00:12:46 +02:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- dnsutils
|
2019-08-12 12:25:54 +02:00
|
|
|
- jsonlint
|
2020-11-27 18:10:43 +01:00
|
|
|
before_install:
|
2021-01-13 23:15:42 +01:00
|
|
|
- |
|
|
|
|
echo "Checking if a CI run is needed post commit: ${TRAVIS_COMMIT_RANGE}"
|
|
|
|
if ! git diff --name-only ${TRAVIS_COMMIT_RANGE} | grep -qvE '(\.md$)|(\.pem$)|(\.pdf$)|(\.html$)|^(LICENSE)|^(docs)|^(utils)|^(bin)|(Dockerfile)'
|
2020-11-27 20:24:46 +01:00
|
|
|
then
|
2021-01-13 23:15:42 +01:00
|
|
|
echo "No code was updated, not running the CI."
|
2020-11-27 20:24:46 +01:00
|
|
|
exit
|
2021-01-13 23:15:42 +01:00
|
|
|
fi
|
2016-06-29 00:09:12 +02:00
|
|
|
install:
|
2019-08-12 12:25:54 +02:00
|
|
|
- cpanm --notest Test::More
|
|
|
|
- cpanm --notest Data::Dumper
|
|
|
|
- cpanm --notest JSON
|
|
|
|
# - cpanm JSON::Validator
|
2016-06-29 00:02:53 +02:00
|
|
|
script:
|
2016-06-29 00:15:32 +02:00
|
|
|
- prove -v
|