Jiggle documentation around

This commit is contained in:
Erik Johnston 2017-10-10 10:07:15 +01:00
parent 890bd9cf19
commit 1b11c9ab18
5 changed files with 22 additions and 21 deletions

View file

@ -3,19 +3,5 @@
These are a collection of scripts that should be helpful for those developing These are a collection of scripts that should be helpful for those developing
on dendrite. on dendrite.
- `./scripts/find-lint.sh` runs the linters against dendrite, See `find-lint.sh` for environment variables that control linter resource
`./scripts/find-lint.sh fast` runs a subset of faster lints usage.
- `./scripts/build-test-lint.sh` builds, tests and lints dendrite, and
should be run before pushing commits
- `./scripts/install-local-kafka.sh` downloads, installs and runs a
kafka instance
- `./scripts/travis-test.sh` is what travis runs
The linters can take a lot of resources and are slow, so they can be
configured using two enviroment variables:
- `DENDRITE_LINT_CONCURRENCY` - number of concurrent linters to run,
gometalinter defaults this to 8
- `DENDRITE_LINT_DISABLE_GC` - if set then the the go gc will be disabled
when running the linters, speeding them up but using much more memory.

View file

@ -1,5 +1,7 @@
#! /bin/bash #! /bin/bash
# Builds, tests and lints dendrite, and should be run before pushing commits
set -eu set -eu
export GOPATH="$(pwd):$(pwd)/vendor" export GOPATH="$(pwd):$(pwd)/vendor"
@ -22,6 +24,3 @@ misspell -error src *.md
echo "Testing..." echo "Testing..."
gb test gb test
echo "Done!"

View file

@ -1,5 +1,16 @@
#! /bin/bash #! /bin/bash
# Runs the linters against dendrite
# The linters can take a lot of resources and are slow, so they can be
# configured using two environment variables:
#
# - `DENDRITE_LINT_CONCURRENCY` - number of concurrent linters to run,
# gometalinter defaults this to 8
# - `DENDRITE_LINT_DISABLE_GC` - if set then the the go gc will be disabled
# when running the linters, speeding them up but using much more memory.
set -eu set -eu
export GOPATH="$(pwd):$(pwd)/vendor" export GOPATH="$(pwd):$(pwd)/vendor"

View file

@ -1,5 +1,7 @@
# /bin/bash # /bin/bash
# Downloads, installs and runs a kafka instance
set -eu set -eu
# The mirror to download kafka from is picked from the list of mirrors at # The mirror to download kafka from is picked from the list of mirrors at

View file

@ -1,9 +1,12 @@
#! /bin/bash #! /bin/bash
# The entry point for travis tests
set -eu set -eu
# Tune the GC to use more memory to reduce the number of garbage collections # Tune the GC to use more memory to reduce the number of garbage collections
export GOGC=400 export GOGC=400
export DENDRITE_LINT_DISABLE_GC=1
# 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) # 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)
gb build github.com/matrix-org/dendrite/cmd/dendrite-room-server gb build github.com/matrix-org/dendrite/cmd/dendrite-room-server
@ -15,8 +18,8 @@ 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/mediaapi-integration-tests
gb build github.com/matrix-org/dendrite/cmd/client-api-proxy gb build github.com/matrix-org/dendrite/cmd/client-api-proxy
# Run the pre commit hooks # Run unit tests and linters
DENDRITE_LINT_DISABLE_GC=1 ./scripts/build-test-lint.sh ./scripts/build-test-lint.sh
# Run the integration tests # Run the integration tests
bin/roomserver-integration-tests bin/roomserver-integration-tests