-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
azure-pipelines.yml
44 lines (44 loc) · 1.5 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
---
trigger:
- develop
jobs:
- job: "Build"
pool:
vmImage: "ubuntu-latest"
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: "3.8"
displayName: Install Python.
- script: |
curl -sSL "https://raw.githubusercontent.com\
/python-poetry/poetry/master/get-poetry.py" | python
echo '##vso[task.prependpath]$(HOME)/.poetry/bin'
displayName: Install Poetry.
- task: NodeTool@0
inputs:
versionSpec: "10.x"
displayName: Install NodeJS.
- script: |
curl https://install.goreleaser.com/github.com/ValeLint/vale.sh | sh
echo '##vso[task.prependpath]$(system.defaultWorkingDirectory)/bin'
displayName: Install Vale.
- script: poetry install
displayName: Install Python dependencies.
- script: npm install
displayName: Install JS dependencies.
- script: poetry run invoke lint
displayName: Run linters.
- script: poetry run invoke build
displayName: Run build.
- script: poetry run invoke deploy
condition: |
and(succeeded(),
eq(variables['Build.SourceBranch'], 'refs/heads/develop'))
env:
GIT_AUTHOR_NAME: $(GIT_AUTHOR_NAME)
GIT_AUTHOR_EMAIL: $(GIT_AUTHOR_EMAIL)
GIT_COMMITTER_NAME: $(GIT_COMMITTER_NAME)
GIT_COMMITTER_EMAIL: $(GIT_COMMITTER_EMAIL)
GIT_COMMITTER_PASSWORD: $(GIT_COMMITTER_PASSWORD)
displayName: Run deploy.