aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/travis.sh4
-rwxr-xr-xscripts/update-host.ts2
2 files changed, 3 insertions, 3 deletions
diff --git a/scripts/travis.sh b/scripts/travis.sh
index e0a59806a..f24aac885 100755
--- a/scripts/travis.sh
+++ b/scripts/travis.sh
@@ -5,9 +5,9 @@ if [ $# -eq 0 ]; then
5 exit -1 5 exit -1
6fi 6fi
7 7
8if [ "$1" = "client" ]; then 8if [ "$1" = "misc" ]; then
9 npm run build 9 npm run build
10 mocha --exit --require ts-node/register --bail server/tests/client.ts 10 mocha --exit --require ts-node/register --bail server/tests/client.ts server/tests/activitypub.ts
11elif [ "$1" = "api" ]; then 11elif [ "$1" = "api" ]; then
12 npm run build:server 12 npm run build:server
13 mocha --exit --require ts-node/register --bail server/tests/api/index.ts 13 mocha --exit --require ts-node/register --bail server/tests/api/index.ts
diff --git a/scripts/update-host.ts b/scripts/update-host.ts
index 4410e1ff7..759443623 100755
--- a/scripts/update-host.ts
+++ b/scripts/update-host.ts
@@ -6,7 +6,7 @@ db.init(true)
6 return getServerAccount() 6 return getServerAccount()
7 }) 7 })
8 .then(serverAccount => { 8 .then(serverAccount => {
9 return db.AccountFollow.listAcceptedFollowingUrlsForApi([ serverAccount.id ]) 9 return db.AccountFollow.listAcceptedFollowingUrlsForApi([ serverAccount.id ], undefined)
10 }) 10 })
11 .then(res => { 11 .then(res => {
12 return res.total > 0 12 return res.total > 0