Move cert creation into script

This commit is contained in:
Erik Johnston 2017-11-08 10:39:15 +00:00
parent ee520cd3f5
commit 51b111bc5f
2 changed files with 4 additions and 2 deletions

View file

@ -24,8 +24,7 @@ install:
# Generate a self-signed X.509 certificate for TLS.
before_script:
- if [[ "$TEST_SUITE" == "integ-test" ]]; then openssl req -x509 -newkey rsa:512 -keyout server.key -out server.crt -days 365 -nodes -subj /CN=localhost; fi
- if [[ "$TEST_SUITE" == "integ-test" ]]; then ./scripts/install-local-kafka.sh; fi
- if [[ "${TEST_SUITE:-integ-test}" == "integ-test" ]]; then ./scripts/install-local-kafka.sh; fi
script:
- ./scripts/travis-test.sh

View file

@ -42,6 +42,9 @@ if [ "${TEST_SUITE:-integ-test}" == "integ-test" ]; then
gb build github.com/matrix-org/dendrite/cmd/mediaapi-integration-tests
gb build github.com/matrix-org/dendrite/cmd/client-api-proxy
# Create necessary certificates and keys to run dendrite
openssl req -x509 -newkey rsa:512 -keyout server.key -out server.crt -days 365 -nodes -subj /CN=localhost
# Run the integration tests
bin/roomserver-integration-tests
bin/syncserver-integration-tests