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
export LANG=en_US.UTF-8 | |
export LANGUAGE=en_US.UTF-8 | |
export LC_ALL=en_US.UTF-8 | |
brew install mint | |
bundle install | |
bundle exec fastlane test |
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
npm install -g danger | |
echo $PULL_REQUEST_URL | |
swift build | |
swift run danger-swift ci |
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
npm install -g danger | |
echo $PULL_REQUEST_URL | |
swift build | |
cd Submodules/WeTransfer-iOS-CI | |
swift run danger-swift ci --cache-path ../../.build --build-path ../../.build --cwd ../../ |
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
import Danger | |
import Foundation | |
let danger = Danger() | |
let editedFiles = danger.git.modifiedFiles + danger.git.createdFiles | |
if editedFiles.count - danger.git.deletedFiles.count > 300 { | |
warn("Big PR, try to keep changes smaller if you can") | |
} |
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
import Danger | |
import WeTransferPRLinter | |
WeTransferPRLinter.lint(swiftLintConfigsFolderPath: "BuildTools") |
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
// swift-tools-version:5.5 | |
import PackageDescription | |
let package = Package( | |
name: "ModularSlothCreator-PRLinter", | |
defaultLocalization: "en", | |
products: [ | |
.library(name: "DangerDeps", type: .dynamic, targets: ["ModularSlothCreator-PRLinter"]) | |
], | |
dependencies: [ |
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
git config user.name "$DOCC_GITHUB_NAME" | |
git config user.email "$DOCC_GITHUB_EMAIL" | |
# Change the GitHub URL to your repository | |
git remote set-url origin https://$DOCC_GITHUB_USERNAME:$DOCC_GITHUB_API_TOKEN@github.com/theappbusiness/ModularSlothCreator/ | |
git fetch | |
git stash push -u -- docs doc_archives | |
git checkout feature/docc-hosting | |
rm -rf docs doc_archives | |
git stash apply | |
git add docs doc_archives |
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
Start testing: Mar 11 11:19 GMT | |
---------------------------------------------------------- | |
1/9 Testing: api_test | |
1/9 Test: api_test | |
Command: "/Users/pkasetti/Desktop/swift-project/build/Xcode-RelWithDebInfoAssert/cmark-macosx-x86_64/api_test/RelWithDebInfo/api_test" | |
Directory: /Users/pkasetti/Desktop/swift-project/build/Xcode-RelWithDebInfoAssert/cmark-macosx-x86_64/testdir | |
"api_test" start time: Mar 11 11:19 GMT | |
Output: | |
---------------------------------------------------------- | |
539 tests passed, 0 failed, 0 skipped |
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
command alias 🚽 expression -l objc -- (void)[CATransaction flush] | |
command alias porvc e -l swift -- UIApplication.shared.keyWindow?.rootViewController?.value(forKey: "_printHierarchy") |
NewerOlder