1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152
|
conditions: v1
dist: xenial
git:
depth: 100
cache:
pip: true
directories:
- $HOME/.cache/pre-commit
- $HOME/.pre-commit
- $HOME/virtualenv/python$(python -c 'import platform; print(platform.python_version())')
- $HOME/Library/Caches/Homebrew
language: python
.mixtures: # is not used by Travis CI, but helps avoid duplication
- &if-cron-or-manual-run-or-tagged
if: type IN (cron, api) OR tag IS present
- &reset-prerequisites
before_install: []
jobs:
fast_finish: true
include:
- python: "3.7"
<<: *reset-prerequisites
name: Running flake8 linting checks
env:
TOXENV: flake8
- python: "3.7"
<<: *reset-prerequisites
name: Running docs building checks
env:
TOXENV: docs
- python: "3.7"
env:
ANSIBLE_VERSION: "27"
- python: "3.6"
<<: *if-cron-or-manual-run-or-tagged
env:
ANSIBLE_VERSION: "27"
- python: "3.5"
<<: *if-cron-or-manual-run-or-tagged
env:
ANSIBLE_VERSION: "27"
- python: "2.7"
env:
ANSIBLE_VERSION: "27"
- python: "3.7"
env:
ANSIBLE_VERSION: "26"
- python: "3.6"
<<: *if-cron-or-manual-run-or-tagged
env:
ANSIBLE_VERSION: "26"
- python: "3.5"
<<: *if-cron-or-manual-run-or-tagged
env:
ANSIBLE_VERSION: "26"
- python: "2.7"
env:
ANSIBLE_VERSION: "26"
- python: "3.7"
env:
ANSIBLE_VERSION: "25"
- python: "3.6"
<<: *if-cron-or-manual-run-or-tagged
env:
ANSIBLE_VERSION: "25"
- python: "3.5"
<<: *if-cron-or-manual-run-or-tagged
env:
ANSIBLE_VERSION: "25"
- python: "2.7"
env:
ANSIBLE_VERSION: "25"
- python: "3.7"
<<: *if-cron-or-manual-run-or-tagged
env:
ANSIBLE_VERSION: devel
- python: "3.6"
<<: *if-cron-or-manual-run-or-tagged
env:
ANSIBLE_VERSION: devel
- python: "3.5"
<<: *if-cron-or-manual-run-or-tagged
env:
ANSIBLE_VERSION: devel
- python: "2.7"
<<: *if-cron-or-manual-run-or-tagged
env:
ANSIBLE_VERSION: devel
- &deploy-job
<<: *reset-prerequisites
stage: Deploy
name: Publishing current Git tagged version of dist to PyPI
if: repo == "ansible/ansible-lint" AND tag IS present
python: "3.7"
env: &deploy-env
TOXENV: metadata-validation
deploy: &deploy-step
provider: pypi
user: ansible-lint
password:
secure: >
l4lT2SQmdtNOoOWd4eeozpshpsuSKirvzcJtRf7BhkcUh1T4OPTga8Qe2kQiQ/zOdd9E+Mtlyi1o6pipEVTQkLn2TvVM+lOt9NlpyNxUrDfwJ3dyqp6/rdNm+UWBOJA/sijZik2WyyXq5aN6va7ESSu4ShZtlOUYuLnEfQkgogbkn2IO0EhrAQIjBknvmIFPWpicxwi3aZaV5eEhYFCjxZDlQOq4B0pC9FIvbHQr32DB3Eibv7q0Svn0SuRAvrOKvgFlqcM24PHYV0gu1NAvuX7fj6ICvnHNLlDQ/iPNr90PqDal+zE/bdrGHFehT1Gp4heWEuP+xknysz4UrrO5j4V/MA+A5EfNwzku1lr4LeWPwxHVyv/4UYM3rAJFQLdkKErnChkrLUQaqNf+W9eznTsBKSXGbrkZmDsqT2cAW87Z5PTm5z+FtA3uOd5Ga8UZLoTMUjrHu1f23aC3TOYVvCWu2OKFtAowRdUxrbyJghzk6WORRhQCUAs8JUxObsd7TfeETSodtW3oALMVhrOnDTQF/Iif4X1hjorUlBvZR9vNJmZoyyUKc64FDPmoWLaYhed2iGOBW6QAz4+SolJ3QXdSI5odb7sSIq1uBMxnPMWrDtyHOv4iveOz4+vybCEbZt6xJrJodIQJD/nxlRBPVErrOUiSn3f0KXDqpY/bhFI=
distributions: dists
skip-cleanup: true
on:
all_branches: true
- <<: *deploy-job
if: repo == "ansible/ansible-lint" AND type NOT IN (cron, pull_request) # Always run, except if PR or cron
name: Publishing current (unstable) Git revision of dist to Test PyPI
env:
<<: *deploy-env
PYPI_UPLOAD: true
deploy:
<<: *deploy-step
server: https://test.pypi.org/legacy/
env:
global:
TOXENV_TMPL: "'ansible${ANSIBLE_VERSION}'"
before_install:
- export TOXENV=$(echo $TOXENV_TMPL | envsubst)
install:
- pip install -U tox
- tox --notest # Pre-populate virtualenv
script:
- tox -v
|