mirror of
https://github.com/frappe/bench.git
synced 2024-11-12 00:06:36 +00:00
chore: dont run travis for docs updates
This commit is contained in:
parent
2c5d1188b8
commit
9eca22bac4
12
.travis.yml
12
.travis.yml
@ -3,7 +3,7 @@ dist: bionic
|
|||||||
sudo: true
|
sudo: true
|
||||||
|
|
||||||
git:
|
git:
|
||||||
depth: 1
|
depth: 10
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
- pip
|
- pip
|
||||||
@ -70,6 +70,16 @@ matrix:
|
|||||||
env: TEST=easy_install
|
env: TEST=easy_install
|
||||||
script: sudo python $TRAVIS_BUILD_DIR/install.py --user travis --run-travis --production --verbose
|
script: sudo python $TRAVIS_BUILD_DIR/install.py --user travis --run-travis --production --verbose
|
||||||
|
|
||||||
|
before_install:
|
||||||
|
- |
|
||||||
|
if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
|
||||||
|
TRAVIS_COMMIT_RANGE="FETCH_HEAD...$TRAVIS_BRANCH"
|
||||||
|
fi
|
||||||
|
git diff --name-only $TRAVIS_COMMIT_RANGE | grep -qvE '\.md$|^docs' || {
|
||||||
|
echo "Only docs were updated, stopping build process."
|
||||||
|
exit
|
||||||
|
}
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- pip install urllib3 pyOpenSSL ndg-httpsclient pyasn1
|
- pip install urllib3 pyOpenSSL ndg-httpsclient pyasn1
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user