Limit mandatory test jobs to speed-up builds
Moved 2.7 to priority stage
Applied API or Cron run condition to OS X and test stages
Closes
@@ -14,6 +14,9 @@ _base_envs:
stage: &stage_test_osx_name test under OS X (last chance to fail before deploy available)
- &stage_deploy
stage: &stage_deploy_name upload new version of python package to PYPI (only for tagged commits)
+- _conditions:
+ - &condition_api_or_cron
+ if: type IN (api, cron)
- &pyenv_base
<<: *stage_test
language: generic
@@ -62,7 +65,6 @@ _base_envs:
python: *mainstream_python
after_failure: skip
python:
-- 2.7
- 3.4
- 3.7-dev
- *pypy2
@@ -86,6 +88,8 @@ jobs:
env: TOXENV=setup-check
- <<: *pure_python_base_priority
# mainstream here (3.6)
+ - <<: *pure_python_base_priority
+ python: 2.7
- <<: *pure_python_base_priority
# mainstream here (3.6)
# run tests against the bleeding-edge cheroot
@@ -165,8 +169,9 @@ after_failure:
stages:
- *stage_lint_name
- *stage_test_priority_name
-- *stage_test_name
+- name: *stage_test_name
+ <<: *condition_api_or_cron
- name: *stage_test_osx_name
- if: type IN (api, cron) OR tag IS present
+ <<: *condition_api_or_cron
- name: *stage_deploy_name
if: tag IS present
