Skip to content

Commit

Permalink
Enhancements
Browse files Browse the repository at this point in the history
  • Loading branch information
tevelee committed Aug 13, 2018
1 parent 351830d commit 1d2a6ad
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[![Travis CI status](https://travis-ci.org/tevelee/Eval.svg?branch=master)](https://travis-ci.org/tevelee/Eval)
[![Framework version](https://img.shields.io/badge/Version-1.3.2-yellow.svg)]()
[![Swift version](https://img.shields.io/badge/Swift-4.0-orange.svg)]()
[![Swift version](https://img.shields.io/badge/Swift-4.2-orange.svg)]()
[![Code Documentation Coverage](https://tevelee.github.io/Eval/badge.svg)](https://tevelee.github.io/Eval)
[![Code Test Coverage](https://codecov.io/gh/tevelee/Eval/branch/master/graph/badge.svg)](https://codecov.io/gh/tevelee/Eval)
[![Platforms](https://img.shields.io/badge/Platforms-iOS%20|%20macOS%20|%20Linux-blue.svg)]()
Expand Down
8 changes: 5 additions & 3 deletions Scripts/Sources/Automation/Eval.swift
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ class Eval {

print("📦 📤 Pushing")
let remote = "origin"
try Shell.executeAndPrint("git -C \(dir) push \(remote) \(branch)", timeout: 30)
try Shell.executeAndPrint("git -C \(dir) push --force-with-lease \(remote) \(branch)", timeout: 30)
} else {
throw CIError.logicalError(message: "Repository URL not found")
}
Expand All @@ -196,6 +196,8 @@ class Eval {
static func runCocoaPodsLinter() throws {
print("🔮 Validating CocoaPods support")
let flags = TravisCI.isRunningLocally() ? "--verbose" : ""
try Shell.executeAndPrint("export EXPANDED_CODE_SIGN_IDENTITY=-", timeout: 10)
try Shell.executeAndPrint("export EXPANDED_CODE_SIGN_IDENTITY_NAME=-", timeout: 10)
try Shell.executeAndPrint("bundle exec pod lib lint \(flags)", timeout: 300)
}

Expand Down Expand Up @@ -247,8 +249,8 @@ class Eval {

print("💁🏻 Pushing changes")
try Shell.executeAndPrint("git remote add ssh_origin git@github.com:tevelee/Eval.git")
try Shell.executeAndPrint("git push ssh_origin HEAD:master --force")
try Shell.executeAndPrint("git push ssh_origin HEAD:master --force --tags")
try Shell.executeAndPrint("git push ssh_origin HEAD:master --force-with-lease")
try Shell.executeAndPrint("git push ssh_origin HEAD:master --force-with-lease --tags")

print("📦 Releasing package managers")
try Shell.executeAndPrint("pod trunk push . || true", timeout: 600)
Expand Down

0 comments on commit 1d2a6ad

Please sign in to comment.