fix python version for ansible sanity test
Some checks failed
continuous-integration/drone/pr Build is failing
Some checks failed
continuous-integration/drone/pr Build is failing
This commit is contained in:
parent
5e347bf06b
commit
785acdc0da
@ -18,7 +18,7 @@ local PythonVersion(pyversion='3.8') = {
|
|||||||
local AnsibleVersion(version='devel') = {
|
local AnsibleVersion(version='devel') = {
|
||||||
local gitversion = if version == 'devel' then 'devel' else 'stable-' + version,
|
local gitversion = if version == 'devel' then 'devel' else 'stable-' + version,
|
||||||
name: 'ansible-' + std.strReplace(version, '.', ''),
|
name: 'ansible-' + std.strReplace(version, '.', ''),
|
||||||
image: 'python:3.8',
|
image: 'python:3.9',
|
||||||
environment: {
|
environment: {
|
||||||
PY_COLORS: 1,
|
PY_COLORS: 1,
|
||||||
},
|
},
|
||||||
@ -27,7 +27,8 @@ local AnsibleVersion(version='devel') = {
|
|||||||
'poetry config experimental.new-installer false',
|
'poetry config experimental.new-installer false',
|
||||||
'poetry install',
|
'poetry install',
|
||||||
'poetry run pip install https://github.com/ansible/ansible/archive/' + gitversion + '.tar.gz --disable-pip-version-check',
|
'poetry run pip install https://github.com/ansible/ansible/archive/' + gitversion + '.tar.gz --disable-pip-version-check',
|
||||||
'ansible-test sanity --exclude .chglog/ --exclude .drone.yml --python 3.8',
|
'poetry run ansible --version',
|
||||||
|
'poetry run ansible-test sanity --exclude .chglog/ --exclude .drone.yml --python 3.8',
|
||||||
],
|
],
|
||||||
depends_on: [
|
depends_on: [
|
||||||
'clone',
|
'clone',
|
||||||
|
12
.drone.yml
12
.drone.yml
@ -111,26 +111,28 @@ platform:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: ansible-devel
|
- name: ansible-devel
|
||||||
image: python:3.8
|
image: python:3.9
|
||||||
commands:
|
commands:
|
||||||
- pip install poetry -qq
|
- pip install poetry -qq
|
||||||
- poetry config experimental.new-installer false
|
- poetry config experimental.new-installer false
|
||||||
- poetry install
|
- poetry install
|
||||||
- poetry run pip install https://github.com/ansible/ansible/archive/devel.tar.gz --disable-pip-version-check
|
- poetry run pip install https://github.com/ansible/ansible/archive/devel.tar.gz --disable-pip-version-check
|
||||||
- ansible-test sanity --exclude .chglog/ --exclude .drone.yml --python 3.8
|
- poetry run ansible --version
|
||||||
|
- poetry run ansible-test sanity --exclude .chglog/ --exclude .drone.yml --python 3.8
|
||||||
environment:
|
environment:
|
||||||
PY_COLORS: 1
|
PY_COLORS: 1
|
||||||
depends_on:
|
depends_on:
|
||||||
- clone
|
- clone
|
||||||
|
|
||||||
- name: ansible-214
|
- name: ansible-214
|
||||||
image: python:3.8
|
image: python:3.9
|
||||||
commands:
|
commands:
|
||||||
- pip install poetry -qq
|
- pip install poetry -qq
|
||||||
- poetry config experimental.new-installer false
|
- poetry config experimental.new-installer false
|
||||||
- poetry install
|
- poetry install
|
||||||
- poetry run pip install https://github.com/ansible/ansible/archive/stable-2.14.tar.gz --disable-pip-version-check
|
- poetry run pip install https://github.com/ansible/ansible/archive/stable-2.14.tar.gz --disable-pip-version-check
|
||||||
- ansible-test sanity --exclude .chglog/ --exclude .drone.yml --python 3.8
|
- poetry run ansible --version
|
||||||
|
- poetry run ansible-test sanity --exclude .chglog/ --exclude .drone.yml --python 3.8
|
||||||
environment:
|
environment:
|
||||||
PY_COLORS: 1
|
PY_COLORS: 1
|
||||||
depends_on:
|
depends_on:
|
||||||
@ -270,6 +272,6 @@ depends_on:
|
|||||||
|
|
||||||
---
|
---
|
||||||
kind: signature
|
kind: signature
|
||||||
hmac: f8056d1063e4f27d6d1b2395518a9654a462b0291c5425b375442873d5e3a740
|
hmac: 87490bf3f8efaf81aaebf6148b44043dc005b9dead3a85bada90ae7160f6ad46
|
||||||
|
|
||||||
...
|
...
|
||||||
|
Loading…
Reference in New Issue
Block a user