Skip to content

Commit

Permalink
Skip Travis trying to create symlinks
Browse files Browse the repository at this point in the history
Fails for unknown reasons, see build 1116 which has debug output.
  • Loading branch information
Gregor Billing committed Feb 18, 2020
1 parent 3c40184 commit c99428c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions buildSrc/src/main/kotlin/configurations/FileUtils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ import java.nio.file.Files

object FileUtils {
fun Task.symlink(linkName: File, originFile: File) {
if (System.getenv("CI") != null) { // Travis can't do symlinks for unknown reasons
logger.warn("Detected CI environment, not creating any symlinks!")
return
}

if (!linkName.exists() || linkName.delete()) {
Files.createSymbolicLink(linkName.toPath(), originFile.toPath())
} else {
Expand Down

0 comments on commit c99428c

Please sign in to comment.