forked from flowkey/UIKit-cross-platform
-
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.
fix
xcodebuild
ci step (flowkey#334)
* update xcode on ci * remove broken test after xcode upgrade * remove codecov report
- Loading branch information
1 parent
6f92297
commit 7de7ab0
Showing
4 changed files
with
74 additions
and
96 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
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
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
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 |
---|---|---|
@@ -1,77 +1,70 @@ | ||
jobs: | ||
xcodebuild: | ||
macos: | ||
xcode: "10.1.0" | ||
steps: | ||
- checkout | ||
- run: git submodule update --recursive --init | ||
|
||
- run: | ||
name: Test UIKit for macOS | ||
command: set -o pipefail && | ||
xcodebuild | ||
CODE_SIGNING_REQUIRED=NO | ||
CODE_SIGN_IDENTITY="" | ||
PROVISIONING_PROFILE="" | ||
-sdk "macosx" | ||
-scheme "UIKit" | ||
build test | | ||
xcpretty --color --report junit | ||
xcodebuild: | ||
macos: | ||
xcode: "12.5.0" | ||
steps: | ||
- checkout | ||
- run: git submodule update --recursive --init | ||
|
||
- run: | ||
name: "send coverage report to codecov" | ||
command: bash <(curl -s https://codecov.io/bash) -J 'UIKit' | ||
environment: | ||
- CODECOV_TOKEN: "4b6cd237-4637-42d6-ad29-0d1a6ee59761" | ||
- run: | ||
name: Test UIKit for macOS | ||
command: set -o pipefail && | ||
xcodebuild | ||
CODE_SIGNING_REQUIRED=NO | ||
CODE_SIGN_IDENTITY="" | ||
PROVISIONING_PROFILE="" | ||
-sdk "macosx" | ||
-scheme "UIKit" | ||
build test | | ||
xcpretty --color --report junit | ||
|
||
- run: | ||
name: Test iOSTestTarget | ||
command: set -o pipefail && | ||
xcodebuild | ||
CODE_SIGNING_REQUIRED=NO | ||
CODE_SIGN_IDENTITY="" | ||
PROVISIONING_PROFILE="" | ||
-sdk "iphonesimulator" | ||
-destination 'platform=iOS Simulator,OS=latest,name=iPhone 8 Plus' | ||
-scheme "UIKit iOSTestTarget" | ||
test | | ||
xcpretty --color --report junit | ||
- run: | ||
name: Test iOSTestTarget | ||
command: set -o pipefail && | ||
xcodebuild | ||
CODE_SIGNING_REQUIRED=NO | ||
CODE_SIGN_IDENTITY="" | ||
PROVISIONING_PROFILE="" | ||
-sdk "iphonesimulator" | ||
-destination 'platform=iOS Simulator,OS=latest,name=iPhone 8 Plus' | ||
-scheme "UIKit iOSTestTarget" | ||
test | | ||
xcpretty --color --report junit | ||
|
||
- run: | ||
name: Build demo app for iOS | ||
command: set -o pipefail && | ||
xcodebuild | ||
CODE_SIGNING_REQUIRED=NO | ||
CODE_SIGN_IDENTITY="" | ||
PROVISIONING_PROFILE="" | ||
-sdk "iphonesimulator" | ||
-destination 'platform=iOS Simulator,OS=latest,name=iPhone 8 Plus' | ||
-scheme "DemoApp" | ||
build | | ||
xcpretty --color --report junit | ||
path: ./samples/getting-started | ||
- run: | ||
name: Build demo app for iOS | ||
command: set -o pipefail && | ||
xcodebuild | ||
CODE_SIGNING_REQUIRED=NO | ||
CODE_SIGN_IDENTITY="" | ||
PROVISIONING_PROFILE="" | ||
-sdk "iphonesimulator" | ||
-destination 'platform=iOS Simulator,OS=latest,name=iPhone 8 Plus' | ||
-scheme "DemoApp" | ||
build | | ||
xcpretty --color --report junit | ||
path: ./samples/getting-started | ||
|
||
|
||
gradlebuild: | ||
docker: | ||
- image: flowkey/androidswift5:latest | ||
steps: | ||
- checkout | ||
- run: git submodule update --recursive --init | ||
- restore_cache: | ||
key: gradle_v1-{{ checksum "./samples/getting-started/android/build.gradle" }} | ||
- run: | ||
name: Build demo app for android | ||
command: ./gradlew assembleDebug | ||
path: ./samples/getting-started/android | ||
- save_cache: | ||
key: gradle_v1-{{ checksum "./samples/getting-started/android/build.gradle" }} | ||
paths: | ||
- /root/.gradle/ | ||
gradlebuild: | ||
docker: | ||
- image: flowkey/androidswift5:latest | ||
steps: | ||
- checkout | ||
- run: git submodule update --recursive --init | ||
- restore_cache: | ||
key: gradle_v1-{{ checksum "./samples/getting-started/android/build.gradle" }} | ||
- run: | ||
name: Build demo app for android | ||
command: ./gradlew assembleDebug | ||
path: ./samples/getting-started/android | ||
- save_cache: | ||
key: gradle_v1-{{ checksum "./samples/getting-started/android/build.gradle" }} | ||
paths: | ||
- /root/.gradle/ | ||
|
||
workflows: | ||
version: 2 | ||
uikit: | ||
jobs: | ||
- xcodebuild | ||
- gradlebuild | ||
version: 2 | ||
uikit: | ||
jobs: | ||
- xcodebuild | ||
- gradlebuild |