forked from SecretMessengerApp/secret-ios
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
58 lines (49 loc) · 1.28 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
pool:
vmImage: 'macOS 10.14'
trigger:
branches:
include:
- develop
steps:
- script: |
sudo xcode-select -switch /Applications/Xcode_10.2.1.app
fastlane prepare
env:
GITHUB_ACCESS_TOKEN: $(GITHUB_ACCESS_TOKEN)
displayName: "Setup environment"
- script: |
fastlane build
displayName: "Build"
- task: PublishBuildArtifacts@1
inputs:
pathtoPublish: "build"
artifactName: "Build logs"
condition: succeededOrFailed()
displayName: "Store build log"
- script: |
fastlane test
displayName: "Test"
- task: PublishTestResults@2
inputs:
testResultsFiles: 'test/*.junit'
condition: succeededOrFailed()
displayName: "Publish test results"
- task: PublishBuildArtifacts@1
inputs:
pathtoPublish: "SnapshotResults"
artifactName: "Snapshot failures"
condition: failed()
displayName: "Store failed snapshots"
- task: PublishBuildArtifacts@1
inputs:
pathtoPublish: "test"
artifactName: "Test logs"
condition: succeededOrFailed()
displayName: "Store test log"
- script: |
fastlane post_test
env:
CODECOV_TOKEN: $(CODECOV_TOKEN)
DEPENDENCIES_BASE_URL: "https://raw.githubusercontent.com/wireapp/wire-ios-shared-resources/master"
GITHUB_ACCESS_TOKEN: $(GITHUB_ACCESS_TOKEN)
displayName: "Post Test"