Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

travis: update VM to use JRE11 to fix acceptance tests failure for PR #964

Merged
merged 1 commit into from
Apr 7, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ matrix:
- if: tag IS blank AND type = pull_request
name: acceptance-tests-raft
os: linux
dist: trusty
dist: xenial
git:
submodules: false
cache:
Expand All @@ -40,7 +40,7 @@ matrix:
- if: tag IS blank AND type = pull_request
name: acceptance-tests-istanbul
os: linux
dist: trusty
dist: xenial
git:
submodules: false
cache:
Expand All @@ -57,7 +57,7 @@ matrix:
- if: tag IS blank AND type = pull_request
name: acceptance-tests-clique
os: linux
dist: trusty
dist: xenial
git:
submodules: false
cache:
Expand Down
15 changes: 3 additions & 12 deletions build/travis-install-linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,10 @@ echo "---> installing tools ..."
sudo apt-get update
# upgrade dpkg to fix issue with trusty: dpkg-deb: error
sudo apt-get -y install dpkg
# Travis pre-installs jdk11 by default.
# However, Tessera 0.8 requires jre8 to run so we use jdk_switcher utility from Travis
if test -f ${HOME}/.jdk_switcher_rc; then
. ${HOME}/.jdk_switcher_rc
fi
if test -f /opt/jdk_switcher/jdk_switcher.sh; then
. /opt/jdk_switcher/jdk_switcher.sh
fi
jdk_switcher use openjdk8
java -version
mvn --version

sudo wget https://github.com/ethereum/solidity/releases/download/v0.5.4/solc-static-linux -O /usr/local/bin/solc
sudo wget https://github.com/ethereum/solidity/releases/download/v0.5.4/solc-static-linux -O /usr/local/bin/solc -q
sudo chmod +x /usr/local/bin/solc
solc --version
echo "---> tools installation done"
Expand All @@ -36,11 +27,11 @@ git clone https://github.com/jpmorganchase/quorum-cloud.git ${TRAVIS_HOME}/quoru
echo "---> cloning done"

echo "---> getting tessera jar ..."
wget https://github.com/jpmorganchase/tessera/releases/download/tessera-0.8/tessera-app-0.8-app.jar -O $HOME/tessera.jar -q
wget https://oss.sonatype.org/service/local/repositories/releases/content/com/jpmorgan/quorum/tessera-app/0.10.4/tessera-app-0.10.4-app.jar -O $HOME/tessera.jar -q
echo "---> tessera done"

echo "---> getting gauge jar ..."
wget https://github.com/getgauge/gauge/releases/download/v1.0.7/gauge-1.0.7-linux.x86_64.zip -O gauge.zip -q
wget https://github.com/getgauge/gauge/releases/download/v1.0.8/gauge-1.0.8-linux.x86_64.zip -O gauge.zip -q
sudo unzip -o gauge.zip -d /usr/local/bin
gauge telemetry off
cd ${TRAVIS_HOME}/quorum-acceptance-tests
Expand Down
4 changes: 3 additions & 1 deletion build/travis-run-acceptance-tests-linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
set -e
# start network and run acceptance tests
echo "---> start quorum network for consensus ${TF_VAR_consensus_mechanism} ..."
java --version
export PATH=${TRAVIS_BUILD_DIR}/build/bin:$PATH
export TESSERA_JAR=${HOME}/tessera.jar
cd ${TRAVIS_HOME}/quorum-cloud/travis/4nodes
Expand All @@ -11,8 +12,9 @@ echo "---> network started"
cd ${TRAVIS_HOME}/quorum-acceptance-tests
cp config/application-local.4nodes.yml config/application-local.yml
echo "---> run acceptance tests for consensus ${TF_VAR_consensus_mechanism} ..."
java --version
./src/travis/run_tests.sh
echo "---> acceptance tests finished"
echo "---> stop the network..."
${TRAVIS_HOME}/quorum-cloud/travis/4nodes/stop.sh
echo "---> network stopped"
echo "---> network stopped"