8000 Setup Azure Pipeline. · dry-python/dry-python.github.io@d7e2cfe · GitHub
[go: up one dir, main page]

Skip to content

Commit d7e2cfe

Browse files
committed
Setup Azure Pipeline.
1 parent 5bfca32 commit d7e2cfe

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

azure-pipelines.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
trigger:
3+
- develop
4+
jobs:
5+
- job: "Ship it"
6+
pool:
7+
vmImage: "ubuntu-latest"
8+
steps:
9+
- task: UsePythonVersion@0
10+
inputs:
11+
versionSpec: "3.8"
12+
displayName: Install Python.
13+
- task: NodeTool@0
14+
inputs:
15+
versionSpec: "10.x"
16+
displayName: Install NodeJS.
17+
- script: |
18+
curl https://install.goreleaser.com/github.com/ValeLint/vale.sh | sh
19+
echo '##vso[task.prependpath]$(system.defaultWorkingDirectory)/bin'
20+
displayName: Install Vale.
21+
- script: "curl -sSL https://raw.githubusercontent.com\
22+
/python-poetry/poetry/master/get-poetry.py | python"
23+
displayName: Install poetry.
24+
- script: poetry install
25+
displayName: Install python dependencies.
26+
- script: npm install
27+
displayName: Install javascript dependencies.
28+
- script: poetry run invoke lint
29+
displayName: Run linters.
30+
- script: poetry run invoke build
31+
displayName: Run build.
32+
- script: poetry run invoke deploy
33+
condition: |
34+
and(succeeded(),
35+
eq(variables['Build.SourceBranch'], 'refs/heads/develop'))
36+
displayName: Run deploy.

0 commit comments

Comments
 (0)
0