From 3a9c22ab75ab54365f5ca268dc3106ec3b6c2b58 Mon Sep 17 00:00:00 2001 From: Gabriele Gristina Date: Sat, 29 Jun 2019 16:24:50 +0200 Subject: [PATCH] Skipping Travis/Appveyor build for non-code changes --- .appveyor.yml | 7 +++++++ .travis.yml | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/.appveyor.yml b/.appveyor.yml index 49935c50f..012a2c2f1 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -56,3 +56,10 @@ test_script: } & $env:BASH -lc "cd '$env:APPVEYOR_BUILD_FOLDER' && ./hashcat.exe -m 0 --show *ple0.hash" + +only_commits: + files: + - src/**/* + - include/* + - deps/**/* + - Makefile diff --git a/.travis.yml b/.travis.yml index 30b8ab16c..572c945b4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,5 +5,12 @@ language: c compiler: - clang - gcc +before_install: + - | + if ! git diff --name-only $TRAVIS_COMMIT_RANGE | grep -qvE '(.md)|(.vc)|(.tc)|(.pm)|(.diff)|(.pl)|(.sh)|(.cmd)|(.hash)|(.cl)|(.yaml)|(.rule)|(.hckmap)|(.charset)|(.yml)|(.editorconfig)|(.gitattributes)|(.gitignore)|(.lock)|(OpenCL/)|(.hcmask)' + then + echo "No code changes detected, skip the CI build." + exit + fi script: - make