Commit 36fc40c8 authored by Patrik Dufresne's avatar Patrik Dufresne

Merge branch 'develop/patrik/gitlab-cicd' into 'master'

Fix Sonar execution

See merge request !2
parents 1f779ec9 aafbfc9a
Pipeline #572 passed with stage
in 46 minutes and 35 seconds
......@@ -29,4 +29,4 @@ sonar:
allow_failure: true
script:
- apt-get update && apt-get install -y default-jdk swig build-essential gcc-mingw-w64 mingw-w64 g++-multilib
- mvn -B -Drevision=${REVISION} -Dsonar.host.url=$SONAR_URL -Dsonar.login=$SONAR_TOKEN clean verify sonar:sonar
- mvn -B -Drevision=${REVISION} -Dsonar.host.url=$SONAR_URL -Dsonar.login=$SONAR_TOKEN org.jacoco:jacoco-maven-plugin:prepare-agent clean verify sonar:sonar
= cbc4j =
== Compile ==
This section describe how to configure a linux debian computer to compile the
cbc4j project. A special configuration is required to cross-compile for
windows.
{{{
sudo apt-get install default-jdk maven swig build-essential gcc-mingw-w64 mingw-w64 g++-multilib
}}}
[![Build](http://git.patrikdufresne.com/pdsl/cbc4j/badges/master/build.svg)](http://git.patrikdufresne.com/pdsl/cbc4j)
# cbc4j
This project provide a pre-compiled version of [cbc](https://www.coin-or.org/)
for Java. This library is working on linux and windows.
## Compile
This section describe how to configure a linux debian computer to compile the
cbc4j project. A special configuration is required to cross-compile for
windows.
sudo apt-get install default-jdk maven swig build-essential gcc-mingw-w64 mingw-w64 g++-multilib
mvn -Drevision=1.0-SNAPSHOT clean install
## Usage
To make use of this library, you must add the following to your maven project.
<repositories>
<repository>
<id>patrikdufresne</id>
<url>http://nexus.patrikdufresne.com/content/groups/public/</url>
</repository>
</repositories>
...
<profile>
<id>linux_x86_64</id>
<activation>
<os>
<name>linux</name>
<arch>amd64</arch>
</os>
</activation>
<dependencies>
<dependency>
<groupId>com.patrikdufresne.cbc4j</groupId>
<artifactId>cbc4j-linux-x86_64</artifactId>
<version>1.1</version>
</dependency>
</dependencies>
</profile>
<profile>
<id>win_x86</id>
<activation>
<os>
<family>windows</family>
<arch>amd64</arch>
</os>
</activation>
<dependencies>
<dependency>
<groupId>com.patrikdufresne.cbc4j</groupId>
<artifactId>cbc4j-win-x86_64</artifactId>
<version>1.1</version>
</dependency>
</dependencies>
</profile>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment