-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set up typegraphs cache dir as a symlink on CI
Our goal is to create a persistent cache of svg files between builds. When a CI agent is first created, the cache will populate the svg files in the build agent's home directory. Subsequent builds should be faster. Refs #393
- Loading branch information
Showing
2 changed files
with
14 additions
and
1 deletion.
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
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,13 @@ | ||
#!/bin/sh | ||
# | ||
set -e | ||
|
||
relpath="Website/plugins/typegraph/typegraphs" | ||
abspath="/home/builder/cache/typegraphs" | ||
|
||
if [ ! -s $relpath ]; then | ||
rm -rf $relpath | ||
fi | ||
|
||
ln -s $abspath $relpath | ||
|