aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts
diff options
context:
space:
mode:
authorBRAINS YUM <43896676+McFlat@users.noreply.github.com>2018-10-13 01:43:55 -0500
committerChocobozzz <me@florianbigard.com>2018-10-13 08:43:55 +0200
commit0e5ff97f6fdf9a4cebe5a15f5a390380465803ad (patch)
treee3f69adb2b8a910ef750b44972ea59944aa9ca7c /scripts
parent6e5a785b20230ff5457632361a893d814b53c95e (diff)
downloadPeerTube-0e5ff97f6fdf9a4cebe5a15f5a390380465803ad.tar.gz
PeerTube-0e5ff97f6fdf9a4cebe5a15f5a390380465803ad.tar.zst
PeerTube-0e5ff97f6fdf9a4cebe5a15f5a390380465803ad.zip
add parseBytes utility function and tests (#1239)
* add parseBytes utility function and tests make it parse TB MB fix parseBytes; * 1024 test bytes too, and make parseByte to parse quotas add test in travis.sh in misc * fix parseBytes and test to pass linting
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/travis.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/scripts/travis.sh b/scripts/travis.sh
index 5d195f902..628039ab7 100755
--- a/scripts/travis.sh
+++ b/scripts/travis.sh
@@ -11,8 +11,11 @@ killall -q peertube || true
11 11
12if [ "$1" = "misc" ]; then 12if [ "$1" = "misc" ]; then
13 npm run build -- --light-fr 13 npm run build -- --light-fr
14 mocha --timeout 5000 --exit --require ts-node/register/type-check --bail server/tests/client.ts server/tests/activitypub.ts \ 14 mocha --timeout 5000 --exit --require ts-node/register/type-check --bail server/tests/client.ts \
15 server/tests/feeds/index.ts server/tests/misc-endpoints.ts 15 server/tests/activitypub.ts \
16 server/tests/feeds/index.ts \
17 server/tests/misc-endpoints.ts \
18 server/tests/helpers/index.ts
16elif [ "$1" = "api" ]; then 19elif [ "$1" = "api" ]; then
17 npm run build:server 20 npm run build:server
18 mocha --timeout 5000 --exit --require ts-node/register/type-check --bail server/tests/api/index.ts 21 mocha --timeout 5000 --exit --require ts-node/register/type-check --bail server/tests/api/index.ts