Skip to content

Commit

Permalink
Update azure-pipelines files #520
Browse files Browse the repository at this point in the history
Signed-off-by: Jono Yang <jyang@nexb.com>
  • Loading branch information
JonoYang committed Aug 7, 2024
1 parent fabfea6 commit ccb6e1c
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 55 deletions.
68 changes: 16 additions & 52 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,68 +5,32 @@
# These jobs are using VMs with Azure-provided Python builds
################################################################################

resources:
containers:
- container: postgres
image: postgres
env:
POSTGRES_DB: packagedb
POSTGRES_USER: packagedb
POSTGRES_PASSWORD: packagedb
POSTGRES_INITDB_ARGS: "--encoding=UTF-8 --lc-collate=en_US.UTF-8 --lc-ctype=en_US.UTF-8"
ports:
- 5432:5432

jobs:

- template: etc/ci/azure-posix.yml
parameters:
job_name: ubuntu20_cpython
image_name: ubuntu-20.04
python_versions: ['3.8', '3.9', '3.10', '3.11', '3.12']
python_versions: ['3.10', '3.11', '3.12']
test_suites:
all: venv/bin/pytest -n 2 -vvs
all: make test

- template: etc/ci/azure-posix.yml
parameters:
job_name: ubuntu22_cpython
image_name: ubuntu-22.04
python_versions: ['3.8', '3.9', '3.10', '3.11', '3.12']
test_suites:
all: venv/bin/pytest -n 2 -vvs

- template: etc/ci/azure-posix.yml
parameters:
job_name: macos12_cpython
image_name: macOS-12
python_versions: ['3.8', '3.9', '3.10', '3.11', '3.12']
test_suites:
all: venv/bin/pytest -n 2 -vvs

- template: etc/ci/azure-posix.yml
parameters:
job_name: macos13_cpython
image_name: macOS-13
python_versions: ['3.8', '3.9', '3.10', '3.11', '3.12']
test_suites:
all: venv/bin/pytest -n 2 -vvs

- template: etc/ci/azure-posix.yml
parameters:
job_name: macos14_cpython_arm64
image_name: macOS-14
python_versions: ['3.8', '3.9', '3.10', '3.11', '3.12']
test_suites:
all: venv/bin/pytest -n 2 -vvs

- template: etc/ci/azure-posix.yml
parameters:
job_name: macos14_cpython
image_name: macOS-14-large
python_versions: ['3.8', '3.8', '3.9', '3.10', '3.12']
test_suites:
all: venv/bin/pytest -n 2 -vvs

- template: etc/ci/azure-win.yml
parameters:
job_name: win2019_cpython
image_name: windows-2019
python_versions: ['3.8', '3.9', '3.10', '3.11', '3.12']
test_suites:
all: venv\Scripts\pytest -n 2 -vvs

- template: etc/ci/azure-win.yml
parameters:
job_name: win2022_cpython
image_name: windows-2022
python_versions: ['3.8', '3.9', '3.10', '3.11', '3.12']
python_versions: ['3.10', '3.11', '3.12']
test_suites:
all: venv\Scripts\pytest -n 2 -vvs
all: make test
7 changes: 4 additions & 3 deletions etc/ci/azure-posix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,10 @@ jobs:
displayName: '${{ pyver }} - Install Python'

- script: |
python${{ pyver }} --version
echo "python${{ pyver }}" > PYTHON_EXECUTABLE
./configure --clean && ./configure --dev
make dev
make envfile_testing
sudo mkdir /etc/scancodeio
sudo cp .env /etc/scancodeio
displayName: '${{ pyver }} - Configure'
- script: $(test_suite)
Expand Down

0 comments on commit ccb6e1c

Please sign in to comment.