Skip to content

Commit 88975ef

Browse files
committed
Update azure-pipelines.yml for Azure Pipelines
1 parent 02b3934 commit 88975ef

File tree

1 file changed

+10
-32
lines changed

1 file changed

+10
-32
lines changed

azure-pipelines.yml

Lines changed: 10 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -31,32 +31,8 @@ jobs:
3131
# root_dir: ./
3232
# python_version: 3.12
3333
# pipenv_version: 2023.12.1
34-
- job: build_package
35-
# dependsOn: set_versions
36-
displayName: Build Package
37-
steps:
38-
- task: gitversion/setup@0
39-
displayName: Install GitVersion
40-
inputs:
41-
versionSpec: 5.x
42-
- task: gitversion/execute@0
43-
displayName: Use GitVersion
44-
- script: |
45-
set -x
46-
export PATH=$PATH:/home/vsts_azpcontainer/.local/bin
47-
pip install pipx && pipx install poetry
48-
poetry version $(GitVersion.SemVer)
49-
poetry install
50-
poetry build
51-
poetry config pypi-token.pypi $(pypi_token)
52-
cp -R ./dist $(Build.ArtifactStagingDirectory)/dist
53-
- task: PublishBuildArtifacts@1
54-
inputs:
55-
PathtoPublish: "$(Build.ArtifactStagingDirectory)/dist"
56-
ArtifactName: "dist"
57-
publishLocation: "Container"
5834
- job: build_glibc_2_28
59-
dependsOn: build_package
35+
# dependsOn: PythonTest
6036
container: python:3.9.17-buster
6137
displayName: Build for GLIBC 2.28
6238
steps:
@@ -94,32 +70,34 @@ jobs:
9470
ArtifactName: "croudtech-bootstrap"
9571
publishLocation: "Container"
9672

97-
- job: GithubRelease
73+
- job: BuildGithubRelease
9874
dependsOn: build_glibc_latest
99-
displayName: GithubRelease
75+
displayName: Build and GithubRelease
10076
steps:
10177
- download: current
10278
artifact: croudtech-bootstrap-debian-bullseye
10379
- download: current
10480
artifact: croudtech-bootstrap
105-
- download: current
106-
artifact: dist
10781
- task: UsePythonVersion@0
10882
name: set_python_version
10983
displayName: Set Python Version
11084
inputs:
11185
versionSpec: '$(python_version)'
11286
addToPath: true
11387
architecture: x64
88+
- task: gitversion/setup@0
89+
displayName: Install GitVersion
90+
inputs:
91+
versionSpec: 5.x
92+
- task: gitversion/execute@0
93+
displayName: Use GitVersion
11494
- script: |
11595
set -x
116-
cp $(Pipeline.Workspace)/dist/dist $(Build.ArtifactStagingDirectory) ./dist
11796
export PATH=$PATH:/home/vsts_azpcontainer/.local/bin
11897
pip install pipx && pipx install poetry
11998
poetry version $(GitVersion.SemVer)
120-
poetry self add "poetry-pyinstaller-plugin[plugin]"
12199
poetry install
122-
cp $(Pipeline.Workspace)/dist/dist $(Build.ArtifactStagingDirectory)
100+
poetry build
123101
poetry publish
124102
cp $(Pipeline.Workspace)/croudtech-bootstrap/croudtech-bootstrap $(Build.ArtifactStagingDirectory)
125103
cp $(Pipeline.Workspace)/croudtech-bootstrap-debian-bullseye/croudtech-bootstrap-debian-bullseye $(Build.ArtifactStagingDirectory)

0 commit comments

Comments
 (0)