From c1c86c1599acf8aad71fb7d7f312c43d6d1fa5ac Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 8 Oct 2018 17:47:19 +0200 Subject: Try to cache video_high_bitrate_1080p in travis --- server/tests/utils/miscs/miscs.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'server/tests/utils/miscs') diff --git a/server/tests/utils/miscs/miscs.ts b/server/tests/utils/miscs/miscs.ts index b2f80e9b1..d20fa96b8 100644 --- a/server/tests/utils/miscs/miscs.ts +++ b/server/tests/utils/miscs/miscs.ts @@ -51,11 +51,13 @@ async function testImage (url: string, imageName: string, imagePath: string, ext expect(data.length).to.be.below(maxLength) } -function buildAbsoluteFixturePath (path: string) { +function buildAbsoluteFixturePath (path: string, customTravisPath = false) { if (isAbsolute(path)) { return path } + if (customTravisPath && process.env.TRAVIS) return join(process.env.HOME, 'fixtures', path) + return join(__dirname, '..', '..', 'fixtures', path) } -- cgit v1.2.3