Skip to content
This repository was archived by the owner on Sep 22, 2023. It is now read-only.

Commit 792f15a

Browse files
committed
ci: Bring up old trick to avoid job duplication
1 parent a738b7e commit 792f15a

File tree

1 file changed

+14
-8
lines changed

1 file changed

+14
-8
lines changed

.travis.yml

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,20 @@ env:
2020
global:
2121
- BACKEND_CLIENT_CLOUD_TEST=1 # use beta server for integration tests
2222

23+
# test stage
24+
install:
25+
- pip install -U pip setuptools
26+
- pip install -U -r requirements-ci.txt
27+
script:
28+
- python -m flake8 ai/backend tests
29+
- python -m pytest --cov=ai.backend.client -v -m "not integration"
30+
after_success:
31+
- codecov
32+
33+
# job matrix
2334
jobs:
2435
include:
2536
- stage: test
26-
install:
27-
- pip install -U pip setuptools
28-
- pip install -U -r requirements-ci.txt
29-
script:
30-
- python -m flake8 ai/backend tests
31-
- python -m pytest --cov=ai.backend.client -v -m "not integration"
32-
after_success:
33-
- codecov
3437
- stage: deploy
3538
python: "3.7"
3639
install: skip
@@ -49,6 +52,9 @@ jobs:
4952
- python: "3.8"
5053
os: linux
5154
fast_finish: true
55+
# exclude the duplicate default test stage
56+
exclude:
57+
- python: "3.6"
5258

5359
notifications:
5460
webhooks:

0 commit comments

Comments
 (0)