From 1cd5510955dff171c993cca4d4de5e20eb7b85ba Mon Sep 17 00:00:00 2001 From: Dirk Wetter Date: Fri, 27 Nov 2020 18:10:43 +0100 Subject: [PATCH 1/2] Trying to save resources for poor Travis/CI ;-) See https://github.com/google/EarlGrey/pull/383/files/3b38a5dea36a88aba42a42931e77a7c5429a1837 --- .travis.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.travis.yml b/.travis.yml index d1d660b..6035e3f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,6 +7,13 @@ 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 From a780ad6174d048b2a609d91ede2c663652f6a7b1 Mon Sep 17 00:00:00 2001 From: Dirk Wetter Date: Fri, 27 Nov 2020 20:24:46 +0100 Subject: [PATCH 2/2] fix '|" --- .travis.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index 6035e3f..06f35cd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,12 +8,11 @@ addons: - 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 + - 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