Repository navigation
Expand file tree
/
Copy pathazure-pipelines.yml
More file actions
53 lines (53 loc) · 1.9 KB
/
Copy pathazure-pipelines.yml
File metadata and controls
53 lines (53 loc) · 1.9 KB
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
# Python application example with ActiveState Platform
trigger:
- activestate-platform-and-state-tool-setup
jobs:
- job: Linux
pool:
vmImage: 'ubuntu-latest'
steps:
- script: sh <(curl -q https://platform.activestate.com/dl/cli/install.sh) -n
displayName: 'Install State Tool'
- script: state deploy ActiveState-Labs/learn-python
displayName: 'Deploy project'
- script: pylint src
displayName: 'Lint with pylint'
- script: flake8 src --statistics --count
displayName: 'Lint with flake8'
- script: pytest
displayName: 'Test with pytest'
- job: macOS
pool:
vmImage: 'macOS-latest'
steps:
- script: sh <(curl -q https://platform.activestate.com/dl/cli/install.sh) -n
displayName: 'Install State Tool'
- script: state deploy --force ActiveState-Labs/learn-python
displayName: 'Deploy project'
- script: pylint src
displayName: 'Lint with pylint'
- script: flake8 src --statistics --count
displayName: 'Lint with flake8'
- script: pytest
displayName: 'Test with pytest'
- job: Windows
pool:
vmImage: 'windows-latest'
steps:
- powershell: |
(New-Object Net.WebClient).DownloadFile('https://platform.activestate.com/dl/cli/install.ps1', 'install.ps1')
Invoke-Expression -Command "$env:PIPELINE_WORKSPACE\install.ps1 -n -t $env:AGENT_TOOLSDIRECTORY/bin"
Write-Host "##vso[task.prependpath]$env:AGENT_TOOLSDIRECTORY\bin"
workingDirectory: $(Pipeline.Workspace)
displayName: 'Install State Tool'
- script: |
state deploy ActiveState-Labs/learn-python --path %AGENT_TEMPDIRECTORY%
echo ##vso[task.prependpath]%AGENT_TEMPDIRECTORY%\bin
echo ##vso[task.setvariable variable=PATHEXT]%PATHEXT%;.LNK
displayName: 'Deploy project'
- script: pylint src
displayName: 'Lint with pylint'
- script: flake8 src --statistics --count
displayName: 'Lint with flake8'
- script: pytest
displayName: 'Test with pytest'