forked from matheusgomes28/base64pp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
61 lines (53 loc) · 1.66 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
57
58
59
60
61
# Starter pipeline
# Start with a minimal pipeline that you can customize to build and deploy your code.
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml
#
pool:
vmImage: 'ubuntu-latest'
resources:
containers:
- container: 'conan'
image: 'conanio/gcc10:1.42.1'
options: '--user 0:0'
stages:
- stage: 'build'
displayName: 'Build Project'
jobs:
- job: 'build_x86_64'
container: 'conan'
continueOnError: 'false'
steps:
- bash: scripts/helpers/conan-install.sh
displayName: 'Installing all Conan dependencies'
workingDirectory: $(Build.SourcesDirectory)
- bash: |
set -euo pipefail
scripts/build_x86-64.sh
mkdir -p "$(Build.SourcesDirectory)/artifacts"
tar -zcf "$(Build.SourcesDirectory)/artifacts/build-x86_64.tar.gz" "build/"
displayName: 'Compile Code & Tests'
workingDirectory: $(Build.SourcesDirectory)
- task: PublishPipelineArtifact@1
inputs:
targetPath: "$(Build.SourcesDirectory)/artifacts"
artifactName: 'BuildFiles'
- stage: 'tests'
displayName: 'Running Tests'
jobs:
- job:
container: 'conan'
steps:
- checkout: none
- task: DownloadPipelineArtifact@2
displayName: 'Download Built Files'
inputs:
source: current
artifact: 'BuildFiles'
path: "$(Build.SourcesDirectory)/artifacts"
- bash: |
set -euo pipefail
tar -xzf "artifacts/build-x86_64.tar.gz"
cd "build/" && ctest --verbose --test-dir="build/"
displayName: 'Running All Tests'
workingDirectory: $(Build.SourcesDirectory)