mirror of
https://github.com/nim-lang/Nim.git
synced 2026-06-04 02:44:44 +00:00
koch remove dead code (#20912)
* koch remove dead code for Travis CI * Restart CI * Restart CI
This commit is contained in:
@@ -61,25 +61,18 @@ proc exec*(cmd: string, errorcode: int = QuitFailure, additionalPath = "") =
|
||||
putEnv("PATH", prevPath)
|
||||
|
||||
template inFold*(desc, body) =
|
||||
if existsEnv("TRAVIS"):
|
||||
echo "travis_fold:start:" & desc.replace(" ", "_")
|
||||
elif existsEnv("GITHUB_ACTIONS"):
|
||||
if existsEnv("GITHUB_ACTIONS"):
|
||||
echo "::group::" & desc
|
||||
elif existsEnv("TF_BUILD"):
|
||||
echo "##[group]" & desc
|
||||
|
||||
body
|
||||
|
||||
if existsEnv("TRAVIS"):
|
||||
echo "travis_fold:end:" & desc.replace(" ", "_")
|
||||
elif existsEnv("GITHUB_ACTIONS"):
|
||||
if existsEnv("GITHUB_ACTIONS"):
|
||||
echo "::endgroup::"
|
||||
elif existsEnv("TF_BUILD"):
|
||||
echo "##[endgroup]"
|
||||
|
||||
proc execFold*(desc, cmd: string, errorcode: int = QuitFailure, additionalPath = "") =
|
||||
## Execute shell command. Add log folding for various CI services.
|
||||
# https://github.com/travis-ci/travis-ci/issues/2285#issuecomment-42724719
|
||||
let desc = if desc.len == 0: cmd else: desc
|
||||
inFold(desc):
|
||||
exec(cmd, errorcode, additionalPath)
|
||||
|
||||
Reference in New Issue
Block a user