From 10855cbc4825704a00be8a7476c535deee75d2a4 Mon Sep 17 00:00:00 2001 From: Max Date: Wed, 19 Apr 2017 15:35:28 -0700 Subject: [PATCH] Update CI configuration (#3198) - Add caching of pip packages to Travis (makes tests faster by ~15 sec x 5 builds = 75 sec) - Skip builds in AppVeyor when only .rst/.md/docs/etc. are change - Remove lint from AppVeyor (it's already run in Travis) --- .travis.yml | 2 ++ appveyor.yml | 26 ++++++++++++++++++-------- 2 files changed, 20 insertions(+), 8 deletions(-) diff --git a/.travis.yml b/.travis.yml index 4c25d0e4bdd6..56804c71bf50 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,7 @@ sudo: false language: python +# cache package wheels (1 cache per python version) +cache: pip python: - "3.3" - "3.4" diff --git a/appveyor.yml b/appveyor.yml index d768ffc3e642..2c8cdb7c08fc 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -4,31 +4,30 @@ environment: - PYTHON: "C:\\Python35" PYTHON_VERSION: "3.5.1" PYTHON_ARCH: "32" - + - PYTHON: "C:\\Python35-x64" PYTHON_VERSION: "3.5.1" PYTHON_ARCH: "64" - + - PYTHON: "C:\\Python36" PYTHON_VERSION: "3.6.x" PYTHON_ARCH: "32" - + - PYTHON: "C:\\Python36-x64" PYTHON_VERSION: "3.6.x" PYTHON_ARCH: "64" - - + + install: - "%PYTHON%\\python.exe -m pip install -r test-requirements.txt" - "git submodule update --init typeshed" - "%PYTHON%\\python.exe setup.py -q install" - + build: off test_script: - # Ignore lint (it's run separately below) + # Ignore lint (it's run in Travis) - "%PYTHON%\\python.exe runtests.py -x lint" - - ps: if ($env:PYTHON_VERSION -Match "3.6.x" -And $env:PYTHON_ARCH -Match "64") { iex "$env:PYTHON\\python.exe -m flake8" } after_test: - "%PYTHON%\\python.exe -m pip install wheel" @@ -37,3 +36,14 @@ after_test: artifacts: - path: dist\* + +skip_commits: + files: + - docs/**/* + - '**/*.rst' + - '**/*.md' + - .gitignore + - .runtest_log.json + - .travis.yml + - CREDITS + - LICENSE