travis-test.sh 1.0 KB
Newer Older
1 2
#! /bin/bash

3 4
# The entry point for travis tests

5 6
set -eu

7 8 9 10
# Tune the GC to use more memory to reduce the number of garbage collections
export GOGC=400
export DENDRITE_LINT_DISABLE_GC=1

11
# Check that the servers build (this is done explicitly because `gb build` can silently fail (exit 0) and then we'd test a stale binary)
12
gb build github.com/matrix-org/dendrite/cmd/dendrite-room-server
K
Kegsay 已提交
13
gb build github.com/matrix-org/dendrite/cmd/roomserver-integration-tests
14 15
gb build github.com/matrix-org/dendrite/cmd/dendrite-sync-api-server
gb build github.com/matrix-org/dendrite/cmd/syncserver-integration-tests
16
gb build github.com/matrix-org/dendrite/cmd/create-account
17 18 19
gb build github.com/matrix-org/dendrite/cmd/dendrite-media-api-server
gb build github.com/matrix-org/dendrite/cmd/mediaapi-integration-tests
gb build github.com/matrix-org/dendrite/cmd/client-api-proxy
20

21 22
# Run unit tests and linters
./scripts/build-test-lint.sh
23 24 25

# Run the integration tests
bin/roomserver-integration-tests
26
bin/syncserver-integration-tests
27
bin/mediaapi-integration-tests