forked from realm/SwiftLint
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
112 lines (105 loc) · 2.88 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
106
107
108
109
110
111
112
trigger:
- master
jobs:
- job: linux
pool:
vmImage: 'Ubuntu 16.04'
strategy:
maxParallel: 10
matrix:
swift420:
containerImage: norionomura/swift:42
swift421:
containerImage: norionomura/swift:421
container: $[ variables['containerImage'] ]
steps:
- script: swift test --parallel
displayName: swift test
- job: Xcode
pool:
vmImage: 'macOS 10.13'
strategy:
maxParallel: 10
matrix:
xcode10:
DEVELOPER_DIR: /Applications/Xcode_10.app
xcode101:
DEVELOPER_DIR: /Applications/Xcode_10.1.app
steps:
- script: git submodule update --init --recursive
displayName: Update git submodules
- script: xcodebuild -version
displayName: xcodebuild -version
- 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.13'
strategy:
maxParallel: 10
matrix:
xcode10:
DEVELOPER_DIR: /Applications/Xcode_10.app
xcode101:
DEVELOPER_DIR: /Applications/Xcode_10.1.app
steps:
- script: xcodebuild -version
displayName: xcodebuild -version
- script: >
set -o pipefail &&
swift test --parallel
displayName: swift test
- job: CocoaPods
pool:
vmImage: 'macOS 10.13'
variables:
DEVELOPER_DIR: /Applications/Xcode_10.1.app
steps:
- script: bundle update --bundler
displayName: Update bundler
- script: bundle install --path vendor/bundle
displayName: bundle install
- script: bundle exec pod lib lint --verbose SwiftLintFramework.podspec
displayName: pod lib lint
- job: OSSCheck
pool:
vmImage: 'macOS 10.13'
variables:
DEVELOPER_DIR: /Applications/Xcode_10.1.app
steps:
- script: bundle update --bundler
displayName: Update bundler
- script: bundle install --path vendor/bundle
displayName: bundle install
- script: bundle exec danger --verbose
displayName: Run Danger
env:
DANGER_GITHUB_API_TOKEN: $(DANGER_GITHUB_API_TOKEN)
- job: Analyze
pool:
vmImage: 'macOS 10.13'
variables:
DEVELOPER_DIR: /Applications/Xcode_10.1.app
steps:
- script: make analyze
displayName: Run SwiftLint Analyze
- job: TSan
pool:
vmImage: 'macOS 10.13'
variables:
DEVELOPER_DIR: /Applications/Xcode_10.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