Skip to content

Commit 10855cb

Browse files
pkchgvanrossum
authored andcommitted
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)
1 parent 264715e commit 10855cb

File tree

2 files changed

+20
-8
lines changed

2 files changed

+20
-8
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
sudo: false
22
language: python
3+
# cache package wheels (1 cache per python version)
4+
cache: pip
35
python:
46
- "3.3"
57
- "3.4"

appveyor.yml

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,31 +4,30 @@ environment:
44
- PYTHON: "C:\\Python35"
55
PYTHON_VERSION: "3.5.1"
66
PYTHON_ARCH: "32"
7-
7+
88
- PYTHON: "C:\\Python35-x64"
99
PYTHON_VERSION: "3.5.1"
1010
PYTHON_ARCH: "64"
11-
11+
1212
- PYTHON: "C:\\Python36"
1313
PYTHON_VERSION: "3.6.x"
1414
PYTHON_ARCH: "32"
15-
15+
1616
- PYTHON: "C:\\Python36-x64"
1717
PYTHON_VERSION: "3.6.x"
1818
PYTHON_ARCH: "64"
19-
20-
19+
20+
2121
install:
2222
- "%PYTHON%\\python.exe -m pip install -r test-requirements.txt"
2323
- "git submodule update --init typeshed"
2424
- "%PYTHON%\\python.exe setup.py -q install"
25-
25+
2626
build: off
2727

2828
test_script:
29-
# Ignore lint (it's run separately below)
29+
# Ignore lint (it's run in Travis)
3030
- "%PYTHON%\\python.exe runtests.py -x lint"
31-
- ps: if ($env:PYTHON_VERSION -Match "3.6.x" -And $env:PYTHON_ARCH -Match "64") { iex "$env:PYTHON\\python.exe -m flake8" }
3231

3332
after_test:
3433
- "%PYTHON%\\python.exe -m pip install wheel"
@@ -37,3 +36,14 @@ after_test:
3736

3837
artifacts:
3938
- path: dist\*
39+
40+
skip_commits:
41+
files:
42+
- docs/**/*
43+
- '**/*.rst'
44+
- '**/*.md'
45+
- .gitignore
46+
- .runtest_log.json
47+
- .travis.yml
48+
- CREDITS
49+
- LICENSE

0 commit comments

Comments
 (0)