build: make Java tests run on Linux CI (#1127)
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<config>
|
||||
<application>
|
||||
<window_base_width>500</window_base_width>
|
||||
<window_base_height>500</window_base_height>
|
||||
</application>
|
||||
<indexing>
|
||||
<java>
|
||||
<java_path>/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.272.b10-1.el7_9.x86_64/jre/lib/amd64/server/libjvm.so</java_path>
|
||||
</java>
|
||||
<indexer_thread_count>0</indexer_thread_count>
|
||||
</indexing>
|
||||
<user>
|
||||
<recent_projects>
|
||||
<recent_project>./projects/tutorial/tutorial.srctrlprj</recent_project>
|
||||
<recent_project>./projects/tictactoe_cpp/tictactoe_cpp.srctrlprj</recent_project>
|
||||
<recent_project>./projects/tictactoe_py/tictactoe_py.srctrlprj</recent_project>
|
||||
<recent_project>./projects/javaparser/javaparser.srctrlprj</recent_project>
|
||||
</recent_projects>
|
||||
</user>
|
||||
<version>8</version>
|
||||
</config>
|
||||
@@ -1,5 +1,13 @@
|
||||
FROM coatisoftware/centos7_64_qt_llvm:qt5126-llvm1100
|
||||
|
||||
WORKDIR /home/builder
|
||||
|
||||
RUN mkdir .config && \
|
||||
cd .config && \
|
||||
mkdir sourcetrail
|
||||
|
||||
COPY ApplicationSettings.xml /home/builder/.config/sourcetrail/ApplicationSettings.xml
|
||||
|
||||
COPY entrypoint.sh /entrypoint.sh
|
||||
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
|
||||
@@ -43,7 +43,18 @@ struct EventListener: Catch::TestEventListenerBase
|
||||
if (!paths.empty())
|
||||
{
|
||||
ApplicationSettings::getInstance()->setJavaPath(paths.front());
|
||||
std::cout << "Java path written to settings: "
|
||||
<< ApplicationSettings::getInstance()->getJavaPath().str() << std::endl;
|
||||
}
|
||||
else
|
||||
{
|
||||
std::cout << "no Java" << std::endl;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
std::cout << "Java path read form settings: "
|
||||
<< ApplicationSettings::getInstance()->getJavaPath().str() << std::endl;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user