Skip to content

Commit

Permalink
Update CI configuration (python#3198)
Browse files Browse the repository at this point in the history
- 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)
  • Loading branch information
pkch authored and gvanrossum committed Apr 19, 2017
1 parent 264715e commit 10855cb
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 8 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
sudo: false
language: python
# cache package wheels (1 cache per python version)
cache: pip
python:
- "3.3"
- "3.4"
Expand Down
26 changes: 18 additions & 8 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -37,3 +36,14 @@ after_test:

artifacts:
- path: dist\*

skip_commits:
files:
- docs/**/*
- '**/*.rst'
- '**/*.md'
- .gitignore
- .runtest_log.json
- .travis.yml
- CREDITS
- LICENSE

0 comments on commit 10855cb

Please sign in to comment.