diff options
author | Chocobozzz <me@florianbigard.com> | 2018-10-08 17:47:19 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-10-08 17:47:19 +0200 |
commit | c1c86c1599acf8aad71fb7d7f312c43d6d1fa5ac (patch) | |
tree | d11cc73c8943c3261c04442a7eed5caf68e86e14 /server/tests/utils | |
parent | 9f1ddd249652c1e35b45db33885a00a005f9b059 (diff) | |
download | PeerTube-c1c86c1599acf8aad71fb7d7f312c43d6d1fa5ac.tar.gz PeerTube-c1c86c1599acf8aad71fb7d7f312c43d6d1fa5ac.tar.zst PeerTube-c1c86c1599acf8aad71fb7d7f312c43d6d1fa5ac.zip |
Try to cache video_high_bitrate_1080p in travis
Diffstat (limited to 'server/tests/utils')
-rw-r--r-- | server/tests/utils/miscs/miscs.ts | 4 |
1 files changed, 3 insertions, 1 deletions
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 | |||
51 | expect(data.length).to.be.below(maxLength) | 51 | expect(data.length).to.be.below(maxLength) |
52 | } | 52 | } |
53 | 53 | ||
54 | function buildAbsoluteFixturePath (path: string) { | 54 | function buildAbsoluteFixturePath (path: string, customTravisPath = false) { |
55 | if (isAbsolute(path)) { | 55 | if (isAbsolute(path)) { |
56 | return path | 56 | return path |
57 | } | 57 | } |
58 | 58 | ||
59 | if (customTravisPath && process.env.TRAVIS) return join(process.env.HOME, 'fixtures', path) | ||
60 | |||
59 | return join(__dirname, '..', '..', 'fixtures', path) | 61 | return join(__dirname, '..', '..', 'fixtures', path) |
60 | } | 62 | } |
61 | 63 | ||