github.com/kisexp/xdchain@v0.0.0-20211206025815-490d6b732aa7/build/travis-run-acceptance-tests-linux.sh (about) 1 #!/bin/bash 2 set -e 3 # start network and run acceptance tests 4 echo "---> start quorum network for consensus ${TF_VAR_consensus_mechanism} ..." 5 java --version 6 export PATH=${TRAVIS_BUILD_DIR}/build/bin:$PATH 7 export TESSERA_JAR=${HOME}/tessera.jar 8 cd ${TRAVIS_HOME}/quorum-cloud/travis/4nodes 9 ./init.sh ${TF_VAR_consensus_mechanism} 10 ./start.sh ${TF_VAR_consensus_mechanism} tessera 11 echo "---> network started" 12 cd ${TRAVIS_HOME}/quorum-acceptance-tests 13 cp config/application-local.4nodes.yml config/application-local.yml 14 echo "---> run acceptance tests for consensus ${TF_VAR_consensus_mechanism} ..." 15 java --version 16 ./src/travis/run_tests.sh 17 echo "---> acceptance tests finished" 18 echo "---> stop the network..." 19 ${TRAVIS_HOME}/quorum-cloud/travis/4nodes/stop.sh 20 echo "---> network stopped"