Skip to content

Commit

Permalink
Fixes missing Gurobi + CPLEX paths for Maven tests on CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
maxkratz committed Dec 21, 2023
1 parent bd90e46 commit f635643
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
10 changes: 10 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,16 @@
<artifactId>maven-resources-plugin</artifactId>
<version>${maven.resource.version}</version>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-surefire-plugin</artifactId>
<version>${tycho.version}</version>
<configuration combine.self="override">
<environmentVariables>
<LD_LIBRARY_PATH>/opt/gurobi1003/linux64/lib/:/opt/ibm/ILOG/CPLEX_Studio2211/cplex/bin/x86-64_linux/</LD_LIBRARY_PATH>
</environmentVariables>
</configuration>
</plugin>
</plugins>
</build>

Expand Down
9 changes: 4 additions & 5 deletions scripts/env.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
set -e
export LD_LIBRARY_PATH=/opt/gurobi1003/linux64/lib/:/opt/ibm/ILOG/CPLEX_Studio2211/cplex/bin/x86-64_linux/
export GUROBI_HOME=/opt/gurobi1003/linux64/
export GRB_LICENSE_FILE=/home/mkratz/gurobi.lic
export PATH=$PATH:/opt/gurobi1003/linux64/bin:/opt/ibm/ILOG/CPLEX_Studio2211/cplex/bin/x86-64_linux/
LD_LIBRARY_PATH=/opt/gurobi1003/linux64/lib/:/opt/ibm/ILOG/CPLEX_Studio2211/cplex/bin/x86-64_linux/
GUROBI_HOME=/opt/gurobi1003/linux64/
GRB_LICENSE_FILE=/home/mkratz/gurobi.lic
PATH=$PATH:/opt/gurobi1003/linux64/bin:/opt/ibm/ILOG/CPLEX_Studio2211/cplex/bin/x86-64_linux/

0 comments on commit f635643

Please sign in to comment.