Skip to content

Commit

Permalink
Don't run Travis CI when modifying appveyor.yml and don't run Appveyo…
Browse files Browse the repository at this point in the history
…r when modifying .travis.yml (#231)
  • Loading branch information
rei2hu authored and marco-c committed Nov 20, 2018
1 parent 7f5320f commit 17067b7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .travis.yml
Expand Up @@ -103,7 +103,12 @@ matrix:
- CLANG_CXX=clang++
- LLVM_CONFIG=llvm-config
- DEPLOY=1

before_install:
- |
git diff --name-only $TRAVIS_COMMIT_RANGE | grep -qvE '^appveyor.yml$' || {
echo "Only appveyor.yml was updated, stopping build process."
exit
}
install:
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then sudo softwareupdate -i "Command Line Tools (macOS High Sierra version 10.13) for Xcode-9.4"; fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew cask uninstall --force oclint; fi
Expand Down
4 changes: 4 additions & 0 deletions appveyor.yml
Expand Up @@ -2,6 +2,10 @@ image: Visual Studio 2017
platform:
- x64

skip_commits:
files:
- .travis.yml

environment:
matrix:
- CHANNEL: stable
Expand Down

0 comments on commit 17067b7

Please sign in to comment.