Closed Picard0147 closed 6 years ago
Not sure about this one. I've just downloaded that Release and built ok with maven and gradle.
The XML config is not used in the test (the email component is mocked out), so no need to change this to get the build done.
For now, to get you building, if you open in an editor: bxbot/bxbot-core/src/test/java/com/gazbert/bxbot/core/engine/TestTradingEngine.java
Find these 2 lines:
@Test
public void testEngineShutsDownWhenEmergencyStopBalanceIfBreached() throws Exception {
and add this line immediately above @Test:
@org.junit.Ignore("tmp
ignore of test - gazbert to investigate ...")
so it should then look like:
@org.junit.Ignore("tmp ignore of test - gazbert to investigate ...")
@Test
public void testEngineShutsDownWhenEmergencyStopBalanceIfBreached() throws Exception {
This will ignore the test. Then try rebuilding with maven then: mvn clean install
again.
I'll need to investigate - possibly a race condition in the unit test code.
Which version of java are you using? (Type java -version
in a terminal).
Thank you very much, bot is built and runing :+1:
And about java, I'm using jdk from ubuntu repo as usually or maybe allways, here is terminal output:
openjdk version "1.8.0_121"
OpenJDK Runtime Environment (build 1.8.0_121-8u121-b13-0ubuntu1.16.04.2-b13)
OpenJDK 64-Bit Server VM (build 25.121-b13, mixed mode)
If you need other info to track this problem, just write and I'll answer you as soon as posible.
You're welcome.
Really strange how it's just that 1 test that fails too. Smells of a buggy unit test/threading issue. Cheers for the offer of help - will keep you posted.
I'm closing this one - I've still not been able to reproduce it.
If anyone else does reproduce this build issue, please reopen with logs etc and I'll take a look.
Hi, I'm trying to install bxbot on Ubuntu server 16.04 x64, dependecies are installed (hopefully all) for instalation is used last release zip (v0.5-beta.2). Problem appear while I try to build it and no matter if using gradle or Maven. Here is Maven error output:
my email-alerts.xml (emails are not wanted so it's just copied sample with disabled sending):
Unfortunately progamming isn't my cup of tea so I'm not sure if there is a bug in code or it's some problem with dependencies.