2017-03-01 14:55:27 +00:00
|
|
|
#! /bin/bash
|
|
|
|
|
2017-10-10 10:02:39 +00:00
|
|
|
# The entry point for travis tests
|
|
|
|
|
2017-03-01 14:55:27 +00:00
|
|
|
set -eu
|
|
|
|
|
2017-10-10 10:02:39 +00:00
|
|
|
# Tune the GC to use more memory to reduce the number of garbage collections
|
|
|
|
export GOGC=400
|
|
|
|
export DENDRITE_LINT_DISABLE_GC=1
|
|
|
|
|
2017-05-05 16:59:45 +00:00
|
|
|
# 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)
|
2017-04-20 16:47:33 +00:00
|
|
|
gb build github.com/matrix-org/dendrite/cmd/dendrite-room-server
|
2017-03-21 17:14:17 +00:00
|
|
|
gb build github.com/matrix-org/dendrite/cmd/roomserver-integration-tests
|
2017-05-05 16:59:45 +00:00
|
|
|
gb build github.com/matrix-org/dendrite/cmd/dendrite-sync-api-server
|
|
|
|
gb build github.com/matrix-org/dendrite/cmd/syncserver-integration-tests
|
2017-05-25 16:41:45 +00:00
|
|
|
gb build github.com/matrix-org/dendrite/cmd/create-account
|
2017-06-08 13:40:51 +00:00
|
|
|
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
|
2017-03-01 14:55:27 +00:00
|
|
|
|
2017-10-10 10:02:39 +00:00
|
|
|
# Run unit tests and linters
|
|
|
|
./scripts/build-test-lint.sh
|
2017-03-01 14:55:27 +00:00
|
|
|
|
|
|
|
# Run the integration tests
|
|
|
|
bin/roomserver-integration-tests
|
2017-05-05 16:59:45 +00:00
|
|
|
bin/syncserver-integration-tests
|
2017-06-08 13:40:51 +00:00
|
|
|
bin/mediaapi-integration-tests
|