Skip to content

Commit 3feb0ed

Browse files
committed
shorten CI tests to speed up testing
1 parent e5980ed commit 3feb0ed

File tree

1 file changed

+3
-83
lines changed

1 file changed

+3
-83
lines changed

.travis.yml

Lines changed: 3 additions & 83 deletions
Original file line numberDiff line numberDiff line change
@@ -26,98 +26,18 @@ jobs:
2626
# macOS is first to account for the delay in starting the build on macOS.
2727
# This prevents the build from hanging on macOS as the last job to finish
2828
# in a stage.
29-
- stage: Test - PyInstaller
30-
os: osx
31-
language: generic
32-
python: 3.7
33-
cache:
34-
directories:
35-
- $HOME/Library/Caches/pip
36-
script: &script-test-pyinstaller
37-
# Run tests and speed them up by sending them to multiple CPUs.
38-
- >
39-
py.test -n 3 --maxfail 3
40-
tests/unit tests/functional
41-
--ignore=tests/functional/test_libraries.py
42-
--ignore=tests/functional/test_hooks
43-
44-
- stage: Test - Libraries
45-
os: osx
46-
language: generic
47-
python: 3.7
48-
cache:
49-
directories:
50-
- $HOME/Library/Caches/pip
51-
script: &script-test-libraries
52-
- >
53-
py.test -n 3 --maxfail 3
54-
tests/functional/test_libraries.py tests/functional/test_hooks
5529

5630
- &test-pyinstaller
5731
stage: Test - PyInstaller
5832
python: 2.7
59-
script: *script-test-pyinstaller
60-
61-
- &test-libraries
62-
stage: Test - Libraries
63-
python: 2.7
64-
before_script: &start-xvfb
65-
- |
66-
# Run X Virtual Framebuffer to imitate a display
67-
export DISPLAY=:99.0 ;
68-
sh -e /etc/init.d/xvfb start ;
69-
sleep 3 # give xvfb some time to start
70-
# Run tests and speed them up by sending them to multiple CPUs.
71-
script: *script-test-libraries
72-
73-
- &lint
74-
stage: Lint
75-
python: 2.7
7633
script:
34+
# Run tests and speed them up by sending them to multiple CPUs.
7735
- >
78-
if [ "$TRAVIS_PULL_REQUEST" != "false" ] ; then
79-
git fetch origin $TRAVIS_BRANCH:$TRAVIS_BRANCH --depth 1 || travis_terminate 1;
80-
flake8-diff -v -v -v $TRAVIS_BRANCH || travis_terminate 1;
81-
fi
82-
83-
- <<: *test-pyinstaller
84-
python: 3.4
85-
- <<: *test-libraries
86-
python: 3.4
87-
88-
- <<: *test-pyinstaller
89-
python: 3.5
90-
- <<: *test-libraries
91-
python: 3.5
36+
py.test -n 3 --maxfail 3
37+
tests/functional/test_import.py
9238
9339
- <<: *test-pyinstaller
9440
python: 3.6
95-
- <<: *test-libraries
96-
python: 3.6
97-
- <<: *lint
98-
python: 3.6
99-
100-
# Building Python > 3.7 requires OpenSSL 1.0.2 (or 1.1), which is
101-
# available in xenial (16.04 LTS) only. As of 2018-07-08 xenial is only
102-
# available as VM (sudo: true)
103-
104-
- <<: *test-pyinstaller
105-
python: 3.7
106-
dist: xenial
107-
sudo: true
108-
- <<: *test-libraries
109-
python: 3.7
110-
dist: xenial
111-
sudo: true
112-
113-
- <<: *test-pyinstaller
114-
python: nightly
115-
dist: xenial
116-
sudo: true
117-
- <<: *test-libraries
118-
python: nightly
119-
dist: xenial
120-
sudo: true
12141

12242
allow_failures:
12343
# Just tests how PyInstaller performs with upcoming Python

0 commit comments

Comments
 (0)