forked from realm/SwiftLint
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
105 lines (99 loc) · 2.63 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
trigger:
- master
jobs:
- job: linux
pool:
vmImage: 'Ubuntu 16.04'
strategy:
maxParallel: 10
matrix:
swift50:
containerImage: swift:5.0
swift51:
containerImage: swift:5.1
container: $[ variables['containerImage'] ]
steps:
- script: swift test --parallel
displayName: swift test
- job: Xcode
pool:
vmImage: 'macOS 10.14'
strategy:
maxParallel: 10
matrix:
xcode102:
DEVELOPER_DIR: /Applications/Xcode_10.2.app
xcode103:
DEVELOPER_DIR: /Applications/Xcode_10.3.app
xcode111:
DEVELOPER_DIR: /Applications/Xcode_11.1.app
steps:
- script: git submodule update --init --recursive
displayName: Update git submodules
- script: |
sw_vers
xcodebuild -version
displayName: Version Informations
- script: >
set -o pipefail &&
xcodebuild -workspace SwiftLint.xcworkspace -scheme swiftlint test |
xcpretty -r junit -o build/reports/xcodebuild.xml
displayName: xcodebuild test
- task: PublishTestResults@2
inputs:
testRunner: JUnit
testResultsFiles: build/reports/**
condition: succeededOrFailed()
- job: SwiftPM
pool:
vmImage: 'macOS 10.14'
strategy:
maxParallel: 10
matrix:
xcode102:
DEVELOPER_DIR: /Applications/Xcode_10.2.app
xcode103:
DEVELOPER_DIR: /Applications/Xcode_10.3.app
xcode111:
DEVELOPER_DIR: /Applications/Xcode_11.1.app
steps:
- script: |
sw_vers
xcodebuild -version
displayName: Version Informations
- script: >
set -o pipefail &&
swift test --parallel
displayName: swift test
- job: CocoaPods
pool:
vmImage: 'macOS 10.14'
variables:
DEVELOPER_DIR: /Applications/Xcode_11.1.app
steps:
- script: bundle install --path vendor/bundle
displayName: bundle install
- script: bundle exec pod repo update
displayName: pod repo update
- script: bundle exec pod lib lint --verbose SwiftLintFramework.podspec
displayName: pod lib lint
- job: Analyze
pool:
vmImage: 'macOS 10.14'
variables:
DEVELOPER_DIR: /Applications/Xcode_11.1.app
steps:
- script: make analyze
displayName: Run SwiftLint Analyze
- job: TSan
pool:
vmImage: 'macOS 10.14'
variables:
DEVELOPER_DIR: /Applications/Xcode_11.1.app
steps:
- script: swift run --sanitize=thread swiftlint lint --lenient
displayName: Pre-cache SwiftLint Run
- script: swift run --sanitize=thread swiftlint lint --lenient
displayName: Post-cache SwiftLint Run
- script: make test_tsan
displayName: Test With TSan