Skip to content

Commit 5216154

Browse files
committed
Update azure-pipelines files #520
Signed-off-by: Jono Yang <jyang@nexb.com>
1 parent fabfea6 commit 5216154

File tree

2 files changed

+22
-55
lines changed

2 files changed

+22
-55
lines changed

azure-pipelines.yml

Lines changed: 16 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -5,68 +5,32 @@
55
# These jobs are using VMs with Azure-provided Python builds
66
################################################################################
77

8+
resources:
9+
containers:
10+
- container: postgres
11+
image: postgres
12+
env:
13+
POSTGRES_DB: packagedb
14+
POSTGRES_USER: packagedb
15+
POSTGRES_PASSWORD: packagedb
16+
POSTGRES_INITDB_ARGS: "--encoding=UTF-8 --lc-collate=en_US.UTF-8 --lc-ctype=en_US.UTF-8"
17+
ports:
18+
- 5432:5432
19+
820
jobs:
921

1022
- template: etc/ci/azure-posix.yml
1123
parameters:
1224
job_name: ubuntu20_cpython
1325
image_name: ubuntu-20.04
14-
python_versions: ['3.8', '3.9', '3.10', '3.11', '3.12']
26+
python_versions: ['3.10', '3.11', '3.12']
1527
test_suites:
16-
all: venv/bin/pytest -n 2 -vvs
28+
all: make test
1729

1830
- template: etc/ci/azure-posix.yml
1931
parameters:
2032
job_name: ubuntu22_cpython
2133
image_name: ubuntu-22.04
22-
python_versions: ['3.8', '3.9', '3.10', '3.11', '3.12']
23-
test_suites:
24-
all: venv/bin/pytest -n 2 -vvs
25-
26-
- template: etc/ci/azure-posix.yml
27-
parameters:
28-
job_name: macos12_cpython
29-
image_name: macOS-12
30-
python_versions: ['3.8', '3.9', '3.10', '3.11', '3.12']
31-
test_suites:
32-
all: venv/bin/pytest -n 2 -vvs
33-
34-
- template: etc/ci/azure-posix.yml
35-
parameters:
36-
job_name: macos13_cpython
37-
image_name: macOS-13
38-
python_versions: ['3.8', '3.9', '3.10', '3.11', '3.12']
39-
test_suites:
40-
all: venv/bin/pytest -n 2 -vvs
41-
42-
- template: etc/ci/azure-posix.yml
43-
parameters:
44-
job_name: macos14_cpython_arm64
45-
image_name: macOS-14
46-
python_versions: ['3.8', '3.9', '3.10', '3.11', '3.12']
47-
test_suites:
48-
all: venv/bin/pytest -n 2 -vvs
49-
50-
- template: etc/ci/azure-posix.yml
51-
parameters:
52-
job_name: macos14_cpython
53-
image_name: macOS-14-large
54-
python_versions: ['3.8', '3.8', '3.9', '3.10', '3.12']
55-
test_suites:
56-
all: venv/bin/pytest -n 2 -vvs
57-
58-
- template: etc/ci/azure-win.yml
59-
parameters:
60-
job_name: win2019_cpython
61-
image_name: windows-2019
62-
python_versions: ['3.8', '3.9', '3.10', '3.11', '3.12']
63-
test_suites:
64-
all: venv\Scripts\pytest -n 2 -vvs
65-
66-
- template: etc/ci/azure-win.yml
67-
parameters:
68-
job_name: win2022_cpython
69-
image_name: windows-2022
70-
python_versions: ['3.8', '3.9', '3.10', '3.11', '3.12']
34+
python_versions: ['3.10', '3.11', '3.12']
7135
test_suites:
72-
all: venv\Scripts\pytest -n 2 -vvs
36+
all: make test

etc/ci/azure-posix.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,12 @@ jobs:
3030
displayName: '${{ pyver }} - Install Python'
3131

3232
- script: |
33-
python${{ pyver }} --version
34-
echo "python${{ pyver }}" > PYTHON_EXECUTABLE
35-
./configure --clean && ./configure --dev
33+
make dev
34+
make envfile_testing
35+
sudo mkdir /etc/scancodeio
36+
sudo cp .env /etc/scancodeio
37+
make postgres
38+
make postgres-matchcodeio
3639
displayName: '${{ pyver }} - Configure'
3740
3841
- script: $(test_suite)

0 commit comments

Comments
 (0)