-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy path.azure-pipelines.yml
56 lines (53 loc) · 1.44 KB
/
.azure-pipelines.yml
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
trigger:
branches:
include:
- main
- release-*
- refs/tags/*
variables:
isRefTag: $[startsWith(variables['Build.SourceBranch'], 'refs/tags')]
isMain: $[eq(variables['Build.SourceBranch'], 'refs/heads/main')]
stages:
- stage: CI
condition: eq(variables.isRefTag, false)
jobs:
- job: Build
strategy:
matrix:
linux:
imageName: 'ubuntu-24.04'
python.version: '3.x'
CXX: g++
BUILD_PYTHON_API: ON
DOWNLOAD_TILEDB_PREBUILT: ON
ARTIFACT_NAME: linux
pool:
vmImage: $(imageName)
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '$(python.version)'
architecture: 'x64'
- script: printenv
displayName: 'Print Env'
- template: ci/azure-linux_mac.yml
- stage: Docker
condition: or(succeeded(), eq(variables.isRefTag, true))
jobs:
- job: Build
pool:
vmImage: 'ubuntu-24.04'
strategy:
matrix:
cli:
dockerfile: docker/Dockerfile-cli
repository: tiledb/tiledbvcf-cli
context: .
test_cmd: version
python:
dockerfile: docker/Dockerfile-py
repository: tiledb/tiledbvcf-py
context: .
test_cmd: -c "import tiledbvcf; print(tiledbvcf.version)"
steps:
- template: ci/build-images.yml