aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/extra-utils/miscs/miscs.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-07-29 14:58:41 +0200
committerChocobozzz <me@florianbigard.com>2019-07-29 14:58:41 +0200
commitc928e1364fbdff87f27fd982710b95426a250491 (patch)
tree7cdf949f4dca2aeb9b9301e4a41dd534c093f4d8 /shared/extra-utils/miscs/miscs.ts
parent1f82e3e88550ea73043a17e7236d4fcfe3a49d28 (diff)
downloadPeerTube-c928e1364fbdff87f27fd982710b95426a250491.tar.gz
PeerTube-c928e1364fbdff87f27fd982710b95426a250491.tar.zst
PeerTube-c928e1364fbdff87f27fd982710b95426a250491.zip
Improve nginx client images cache
Diffstat (limited to 'shared/extra-utils/miscs/miscs.ts')
-rw-r--r--shared/extra-utils/miscs/miscs.ts6
1 files changed, 5 insertions, 1 deletions
diff --git a/shared/extra-utils/miscs/miscs.ts b/shared/extra-utils/miscs/miscs.ts
index 08f41a7e7..ae8a26c98 100644
--- a/shared/extra-utils/miscs/miscs.ts
+++ b/shared/extra-utils/miscs/miscs.ts
@@ -64,7 +64,11 @@ function buildAbsoluteFixturePath (path: string, customCIPath = false) {
64 return path 64 return path
65 } 65 }
66 66
67 if (customCIPath && process.env.GITLAB_CI) return join(root(), 'cached-fixtures', path) 67 if (customCIPath) {
68 if (process.env.GITLAB_CI) return join(root(), 'cached-fixtures', path)
69
70 if (process.env.TRAVIS) return join(process.env.HOME, 'fixtures', path)
71 }
68 72
69 return join(root(), 'server', 'tests', 'fixtures', path) 73 return join(root(), 'server', 'tests', 'fixtures', path)
70} 74}