-
Notifications
You must be signed in to change notification settings - Fork 286
/
.gitlab-ci.yml
92 lines (77 loc) · 1.73 KB
/
.gitlab-ci.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
stages:
- lint
- build
default:
before_script:
- arch -x86_64 pod update
tags:
- monterey-m1-lasvegas
interruptible: true
variables:
LANG: "en_US.UTF-8"
LC_ALL: "en_US.UTF-8"
## Shared configuration
.job-base:
only:
refs:
- master
- merge_requests
.build-base:
script:
- xcodebuild -version
- xcodebuild -verbose -workspace "VLC.xcworkspace" -scheme "$BUILD_SCHEME" -configuration "Debug" clean build -destination "$BUILD_DESTINATION"
## Lint
lint:
extends: .job-base
stage: lint
script:
- ./Pods/SwiftLint/swiftlint
## Builds
### iOS Builds
# iOS 9.0:
# extends:
# - .job-base
# - .build-base
# tags:
# - macos
# stage: build
# variables:
# BUILD_SCHEME: "VLC-iOS"
# BUILD_DESTINATION: "platform=iOS Simulator,name=iPhone 5,OS=9.0"
iOS 12.x:
extends:
- .job-base
- .build-base
stage: build
variables:
BUILD_SCHEME: "VLC-iOS"
BUILD_DESTINATION: "platform=iOS Simulator,name=iPhone X,OS=12.4"
iOS 15.x:
extends:
- .job-base
- .build-base
stage: build
variables:
BUILD_SCHEME: "VLC-iOS"
BUILD_DESTINATION: "platform=iOS Simulator,name=iPhone 11,OS=15.4"
### tvOS Builds
# tvOS 11.0:
# extends:
# - .job-base
# - .build-base
# tags:
# - macos
# stage: build
# variables:
# BUILD_SCHEME: "VLC-tvOS"
# BUILD_DESTINATION: "platform=tvOS Simulator,name=Apple TV,OS=11.0"
tvOS 15.x:
extends:
- .job-base
- .build-base
tags:
- monterey-m1-lasvegas
stage: build
variables:
BUILD_SCHEME: "VLC-tvOS"
BUILD_DESTINATION: "platform=tvOS Simulator,name=Apple TV,OS=15.4"