forked from wikimedia/wikipedia-ios
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
276b9eb
commit 1c8b5f6
Showing
1 changed file
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
definitions: | ||
workflow: &base_workflow | ||
environment: | ||
xcode: latest | ||
vars: | ||
XCODE_PROJECT: "Wikipedia.xcodeproj" | ||
XCODE_SCHEME: "Wikipedia" | ||
triggering: | ||
events: | ||
- push | ||
scripts: | ||
- name: Upgrade brew | ||
script: brew install clang-format swiftlint || brew upgrade clang-format swiftlint | ||
- name: Installing scripts | ||
script: ./scripts/setup | ||
- name: Building projects | ||
script: | | ||
time xcodebuild clean build -project $XCODE_PROJECT -scheme $XCODE_SCHEME -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 14 Pro,OS=16.2' -configuration Debug CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO | ||
- name: Running tests | ||
script: | | ||
time xcodebuild clean test -project $XCODE_PROJECT -scheme $XCODE_SCHEME -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 14 Pro,OS=16.2' | ||
workflows: | ||
wikipedia-mac-mini-m1: | ||
<<: *base_workflow | ||
name: Wikipedia Workflow with Mac mini M1 | ||
instance_type: mac_mini_m1 | ||
wikipedia-mac-mini-m2: | ||
<<: *base_workflow | ||
name: Wikipedia Workflow with Mac mini M2 | ||
instance_type: mac_mini_m2 |