-
Notifications
You must be signed in to change notification settings - Fork 361
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes up the Carthage build for downstream projects (#280)
- Loading branch information
1 parent
e0fc640
commit 7d1f63a
Showing
40 changed files
with
1,163 additions
and
59 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 |
---|---|---|
@@ -1 +1 @@ | ||
github "pinterest/PINOperation" "1.1" | ||
github "pinterest/PINOperation" "1.2" |
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,80 @@ | ||
--- | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- 'releases/*' | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build: | ||
name: Build | ||
runs-on: macOS-latest | ||
strategy: | ||
matrix: | ||
platform: ['iOS Simulator,name=iPhone 8'] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Analyze and Test | ||
run: | | ||
xcodebuild clean analyze test \ | ||
-destination "platform=${{ matrix.platform }}" \ | ||
-sdk "iphonesimulator" \ | ||
-project PINOperation.xcodeproj \ | ||
-scheme PINOperation \ | ||
ONLY_ACTIVE_ARCH=NO \ | ||
CODE_SIGNING_REQUIRED=NO \ | ||
CLANG_ANALYZER_OUTPUT=plist-html \ | ||
CLANG_ANALYZER_OUTPUT_DIR="$(pwd)/clang" \ | ||
| xcpretty | ||
if [[ -n `find $(pwd)/clang -name "*.html"` ]] ; then rm -rf $(pwd)/clang; exit 1; fi | ||
rm -rf $(pwd)/clang | ||
cocoapods: | ||
name: CocoaPods | ||
runs-on: macOS-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Lint | ||
run: pod lib lint | ||
carthage: | ||
name: Carthage | ||
runs-on: macOS-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Build | ||
run: carthage build --no-skip-current | ||
spm: | ||
name: Swift Package Manager tests | ||
runs-on: macOS-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Test | ||
run: swift test | ||
example: | ||
name: Build Example project | ||
runs-on: macOS-latest | ||
strategy: | ||
matrix: | ||
platform: ['iOS Simulator,name=iPhone 8'] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install Pods | ||
run: cd Example && pod install | ||
- name: Build | ||
run: | | ||
cd Example && xcodebuild clean analyze \ | ||
-destination "platform=${{ matrix.platform }}" \ | ||
-sdk "iphonesimulator" \ | ||
-workspace PINOperationExample.xcworkspace \ | ||
-scheme PINOperationExample \ | ||
ONLY_ACTIVE_ARCH=NO \ | ||
CODE_SIGNING_REQUIRED=NO \ | ||
CLANG_ANALYZER_OUTPUT=plist-html \ | ||
CLANG_ANALYZER_OUTPUT_DIR="$(pwd)/clang" \ | ||
| xcpretty | ||
if [[ -n `find $(pwd)/clang -name "*.html"` ]] ; then rm -rf $(pwd)/clang; exit 1; fi | ||
rm -rf $(pwd)/clang |
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,3 @@ | ||
issues=false | ||
since-tag=1.1.1 | ||
future-release=1.2 |
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 |
---|---|---|
|
@@ -52,3 +52,6 @@ Carthage/Build | |
# Bundler | ||
.bundle | ||
vendor | ||
|
||
# Example project | ||
Example/Pods |
7 changes: 7 additions & 0 deletions
7
Carthage/Checkouts/PINOperation/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,5 +1,7 @@ | ||
[ | ||
"^plans/", | ||
"^docs/", | ||
"^CI/exclude-from-build.json$" | ||
"^CI/exclude-from-build.json$", | ||
"^README.md$", | ||
"^CHANGELOG.md$" | ||
] |
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,40 @@ | ||
# Code of Conduct | ||
|
||
At Pinterest, we work hard to ensure that our work environment is welcoming | ||
and inclusive to as many people as possible. We are committed to creating this | ||
environment for everyone involved in our open source projects as well. We | ||
welcome all participants regardless of ability, age, ethnicity, identified | ||
gender, religion (or lack there of), sexual orientation and socioeconomic | ||
status. | ||
|
||
This code of conduct details our expectations for upholding these values. | ||
|
||
## Good behavior | ||
|
||
We expect members of our community to exhibit good behavior including (but of | ||
course not limited to): | ||
|
||
- Using intentional and empathetic language. | ||
- Focusing on resolving instead of escalating conflict. | ||
- Providing constructive feedback. | ||
|
||
## Unacceptable behavior | ||
|
||
Some examples of unacceptable behavior (again, this is not an exhaustive | ||
list): | ||
|
||
- Harassment, publicly or in private. | ||
- Trolling. | ||
- Sexual advances (this isn’t the place for it). | ||
- Publishing other’s personal information. | ||
- Any behavior which would be deemed unacceptable in a professional environment. | ||
|
||
## Recourse | ||
|
||
If you are witness to or the target of unacceptable behavior, it should be | ||
reported to Pinterest at [email protected]. All reporters will | ||
be kept confidential and an appropriate response for each incident will be | ||
evaluated. | ||
|
||
If the maintainers do not uphold and enforce this code of conduct in | ||
good faith, community leadership will hold them accountable. |
Oops, something went wrong.