Skip to content

Commit

Permalink
Fix ci-skipper
Browse files Browse the repository at this point in the history
  • Loading branch information
lukelbd committed Jan 9, 2020
1 parent 88a2e69 commit 7e01a63
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,14 @@ python:

before_install:
- |
set -e
MODIFIED_FILES=$(git diff --name-only "$TRAVIS_COMMIT_RANGE")
if ! echo "$MODIFIED_FILES" | grep -qvE '(.md)|(.rst)|(.yml)|(.html)'
then
echo "Only doc files were updated, not running the CI."
exit
fi
MODIFIED_FILES=$(git diff --name-only "$TRAVIS_COMMIT_RANGE" 2>/dev/null)
if [ $? -eq 0 ]; then
if ! echo "$MODIFIED_FILES" | grep -qvE '(.md)|(.rst)|(.yml)|(.html)'
then
echo "Only doc files were updated, not running the CI."
exit
fi
fi
- wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
Expand Down

0 comments on commit 7e01a63

Please sign in to comment.