-
Notifications
You must be signed in to change notification settings - Fork 5
/
azure-pipelines.yml
66 lines (62 loc) · 1.67 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
62
63
64
65
66
trigger:
- master
# docker_anders_fi must be defined in Azure Service Connections
resources:
containers:
- container: Kolga
image: anders/ci-configuration:v3
endpoint: docker_anders_fi
- container: KolgaDev
image: anders/ci-configuration:v3-development
endpoint: docker_anders_fi
pool:
vmImage: 'Ubuntu 18.04'
variables:
- group: kolga-vars
stages:
- stage: Build
displayName: Build image
jobs:
- job: Build
container: Kolga
displayName: Build
steps:
- script: ./devops create_images
- stage: Test
displayName: Run tests
jobs:
- job: GetTestImageName
container: Kolga
displayName: TestImage
steps:
- script: echo '##vso[task.setvariable variable=BUILT_DOCKER_TEST_IMAGE;isOutput=true]'$(./devops docker_test_image|tail -1)
name: setVariable
- script: BUILT_DOCKER_TEST_IMAGE=$(setVariable.BUILT_DOCKER_TEST_IMAGE) ./devops test_setup
- job: Test
dependsOn: GetTestImageName
displayName: Test
variables:
BUILT_DOCKER_TEST_IMAGE: $[ dependencies.GetTestImageName.outputs['setVariable.BUILT_DOCKER_TEST_IMAGE'] ]
steps:
- script: sudo chown $(whoami) /etc/hosts && echo 127.0.0.1 docker-registry >> /etc/hosts
- script: make test
- job: TestStyle
container: KolgaDev
displayName: TestStyle
steps:
- script: make style-tests
- job: TestTyping
container: KolgaDev
displayName: TestTyping
steps:
- script: make typing-tests
- job: TestPackages
container: KolgaDev
displayName: TestPackages
steps:
- script: make package-tests
- job: TestDocs
container: KolgaDev
displayName: TestDocs
steps:
- script: make docs