ci: fix choco usage
Following https://docs.chocolatey.org/en-us/choco/commands/#scripting-integration-best-practices-style-guide
This commit is contained in:
committed by
Henry Schreiner
parent
e6cab342a8
commit
f27943608b
@@ -42,7 +42,7 @@ jobs:
|
|||||||
- name: Install Visual C++ for Python 2.7
|
- name: Install Visual C++ for Python 2.7
|
||||||
if: runner.os == 'Windows'
|
if: runner.os == 'Windows'
|
||||||
run: |
|
run: |
|
||||||
choco install vcpython27 -f -y
|
choco upgrade vcpython27 -y
|
||||||
|
|
||||||
- name: Get PR labels
|
- name: Get PR labels
|
||||||
id: pr-labels
|
id: pr-labels
|
||||||
|
|||||||
+1
-1
@@ -36,7 +36,7 @@ jobs:
|
|||||||
os: windows
|
os: windows
|
||||||
language: shell
|
language: shell
|
||||||
before_install:
|
before_install:
|
||||||
- choco install python3 --version 3.6.8 --no-progress -y
|
- choco upgrade python3 -y --version 3.6.8 --limit-output
|
||||||
# Update root certificates to fix SSL error; see http://www.chawn.com/RootCerts.htm
|
# Update root certificates to fix SSL error; see http://www.chawn.com/RootCerts.htm
|
||||||
- powershell "md C:\temp\certs; CertUtil -generateSSTFromWU C:\temp\certs\RootStore.sst; Get-ChildItem -Path C:\\temp\certs\Rootstore.sst | Import-Certificate -CertStoreLocation Cert:\\LocalMachine\\Root\\ | out-null"
|
- powershell "md C:\temp\certs; CertUtil -generateSSTFromWU C:\temp\certs\RootStore.sst; Get-ChildItem -Path C:\\temp\certs\Rootstore.sst | Import-Certificate -CertStoreLocation Cert:\\LocalMachine\\Root\\ | out-null"
|
||||||
env:
|
env:
|
||||||
|
|||||||
+2
-2
@@ -26,7 +26,7 @@ jobs:
|
|||||||
- task: UsePythonVersion@0
|
- task: UsePythonVersion@0
|
||||||
inputs:
|
inputs:
|
||||||
versionSpec: '3.6'
|
versionSpec: '3.6'
|
||||||
- script: choco install vcpython27 -f -y
|
- script: choco upgrade vcpython27 -y
|
||||||
displayName: Install Visual C++ for Python 2.7
|
displayName: Install Visual C++ for Python 2.7
|
||||||
- bash: |
|
- bash: |
|
||||||
python -m pip install -e ".[dev]" pytest-azurepipelines
|
python -m pip install -e ".[dev]" pytest-azurepipelines
|
||||||
@@ -39,7 +39,7 @@ jobs:
|
|||||||
- task: UsePythonVersion@0
|
- task: UsePythonVersion@0
|
||||||
inputs:
|
inputs:
|
||||||
versionSpec: '3.8'
|
versionSpec: '3.8'
|
||||||
- script: choco install vcpython27 -f -y
|
- script: choco upgrade vcpython27 -y
|
||||||
displayName: Install Visual C++ for Python 2.7
|
displayName: Install Visual C++ for Python 2.7
|
||||||
- bash: |
|
- bash: |
|
||||||
python -m pip install -e ".[dev]" pytest-azurepipelines
|
python -m pip install -e ".[dev]" pytest-azurepipelines
|
||||||
|
|||||||
+2
-2
@@ -47,7 +47,7 @@ To build Linux, Mac, and Windows wheels using GitHub Actions, create a `.github/
|
|||||||
|
|
||||||
- name: Install Visual C++ for Python 2.7
|
- name: Install Visual C++ for Python 2.7
|
||||||
if: runner.os == 'Windows'
|
if: runner.os == 'Windows'
|
||||||
run: choco install vcpython27 -f -y
|
run: choco upgrade vcpython27 -y
|
||||||
|
|
||||||
- name: Build wheels
|
- name: Build wheels
|
||||||
run: pipx run cibuildwheel==1.10.0
|
run: pipx run cibuildwheel==1.10.0
|
||||||
@@ -89,7 +89,7 @@ To build Linux, Mac, and Windows wheels using GitHub Actions, create a `.github/
|
|||||||
|
|
||||||
- name: Install Visual C++ for Python 2.7
|
- name: Install Visual C++ for Python 2.7
|
||||||
if: runner.os == 'Windows'
|
if: runner.os == 'Windows'
|
||||||
run: choco install vcpython27 -f -y
|
run: choco upgrade vcpython27 -y
|
||||||
|
|
||||||
- name: Build wheels
|
- name: Build wheels
|
||||||
run: python -m cibuildwheel --output-dir wheelhouse
|
run: python -m cibuildwheel --output-dir wheelhouse
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ jobs:
|
|||||||
pool: {vmImage: 'vs2017-win2016'}
|
pool: {vmImage: 'vs2017-win2016'}
|
||||||
steps:
|
steps:
|
||||||
- task: UsePythonVersion@0
|
- task: UsePythonVersion@0
|
||||||
- script: choco install vcpython27 -f -y
|
- script: choco upgrade vcpython27 -y
|
||||||
displayName: Install Visual C++ for Python 2.7
|
displayName: Install Visual C++ for Python 2.7
|
||||||
- bash: |
|
- bash: |
|
||||||
set -o errexit
|
set -o errexit
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Install Visual C++ for Python 2.7
|
- name: Install Visual C++ for Python 2.7
|
||||||
if: runner.os == 'Windows'
|
if: runner.os == 'Windows'
|
||||||
run: choco install vcpython27 -f -y
|
run: choco upgrade vcpython27 -y
|
||||||
|
|
||||||
- name: Build wheels
|
- name: Build wheels
|
||||||
uses: joerick/cibuildwheel@v1.10.0
|
uses: joerick/cibuildwheel@v1.10.0
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Install Visual C++ for Python 2.7
|
- name: Install Visual C++ for Python 2.7
|
||||||
if: runner.os == 'Windows'
|
if: runner.os == 'Windows'
|
||||||
run: choco install vcpython27 -f -y
|
run: choco upgrade vcpython27 -y
|
||||||
|
|
||||||
- name: Build wheels
|
- name: Build wheels
|
||||||
uses: joerick/cibuildwheel@v1.10.0
|
uses: joerick/cibuildwheel@v1.10.0
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Install Visual C++ for Python 2.7
|
- name: Install Visual C++ for Python 2.7
|
||||||
if: runner.os == 'Windows'
|
if: runner.os == 'Windows'
|
||||||
run: choco install vcpython27 -f -y
|
run: choco upgrade vcpython27 -y
|
||||||
|
|
||||||
- name: Set up QEMU
|
- name: Set up QEMU
|
||||||
if: runner.os == 'Linux'
|
if: runner.os == 'Linux'
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ jobs:
|
|||||||
- os: windows
|
- os: windows
|
||||||
language: shell
|
language: shell
|
||||||
before_install:
|
before_install:
|
||||||
- choco install python --version 3.8.6
|
- choco upgrade python -y --version 3.8.6
|
||||||
- export PATH="/c/Python38:/c/Python38/Scripts:$PATH"
|
- export PATH="/c/Python38:/c/Python38/Scripts:$PATH"
|
||||||
# make sure it's on PATH as 'python3'
|
# make sure it's on PATH as 'python3'
|
||||||
- ln -s /c/Python38/python.exe /c/Python38/python3.exe
|
- ln -s /c/Python38/python.exe /c/Python38/python3.exe
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ jobs:
|
|||||||
- os: windows
|
- os: windows
|
||||||
language: shell
|
language: shell
|
||||||
before_install:
|
before_install:
|
||||||
- choco install python --version 3.8.6
|
- choco upgrade python -y --version 3.8.6
|
||||||
- export PATH="/c/Python38:/c/Python38/Scripts:$PATH"
|
- export PATH="/c/Python38:/c/Python38/Scripts:$PATH"
|
||||||
# make sure it's on PATH as 'python3'
|
# make sure it's on PATH as 'python3'
|
||||||
- ln -s /c/Python38/python.exe /c/Python38/python3.exe
|
- ln -s /c/Python38/python.exe /c/Python38/python3.exe
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ python:
|
|||||||
before_install:
|
before_install:
|
||||||
- |
|
- |
|
||||||
if [[ "$TRAVIS_OS_NAME" = windows ]]; then
|
if [[ "$TRAVIS_OS_NAME" = windows ]]; then
|
||||||
choco install python --version 3.8.6
|
choco upgrade python -y --version 3.8.6
|
||||||
export PATH="/c/Python38:/c/Python38/Scripts:$PATH"
|
export PATH="/c/Python38:/c/Python38/Scripts:$PATH"
|
||||||
# make sure it's on PATH as 'python3'
|
# make sure it's on PATH as 'python3'
|
||||||
ln -s /c/Python38/python.exe /c/Python38/python3.exe
|
ln -s /c/Python38/python.exe /c/Python38/python3.exe
|
||||||
|
|||||||
Reference in New Issue
Block a user