Преглед изворни кода

Merge pull request #2707 from narendravardi/master

Don't perform full Travis build on docs-only changes #2531
enkore пре 8 година
родитељ
комит
52da719d30
2 измењених фајлова са 9 додато и 1 уклоњено
  1. 8 0
      .travis.yml
  2. 1 1
      docs/internals/data-structures.rst

+ 8 - 0
.travis.yml

@@ -42,6 +42,14 @@ matrix:
           osx_image: xcode6.4
           env: TOXENV=py36
 
+before_install:
+- |
+    echo Checking whether $TRAVIS_COMMIT_RANGE changed only docs
+    git diff --name-only $TRAVIS_COMMIT_RANGE | grep -qvE '(AUTHORS|README\.rst|^(docs)/)' || {
+      echo "Only docs were updated, stopping build process."
+      exit
+    }
+
 install:
     - git fetch --unshallow --tags
     - ./.travis/install.sh

+ 1 - 1
docs/internals/data-structures.rst

@@ -17,7 +17,7 @@ Repository
 
 .. Some parts of this description were taken from the Repository docstring
 
-|project_name| stores its data in a `Repository`, which is a filesystem-based
+Borg stores its data in a `Repository`, which is a file system based
 transactional key-value store. Thus the repository does not know about
 the concept of archives or items.