Skip to content

Delete hipparchus-optim/src/main/java/org/hipparchus/optim/nonlinear/… #348

Delete hipparchus-optim/src/main/java/org/hipparchus/optim/nonlinear/…

Delete hipparchus-optim/src/main/java/org/hipparchus/optim/nonlinear/… #348

Workflow file for this run

name: Java CI with Maven
on: [ push ]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 8
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 8
- name: Build with Maven
run: mvn -B -U -f pom.xml install checkstyle:checkstyle
- name: SonarQube scan
run: |
if [ $PROJECT_KEY != 'Hipparchus-Math/hipparchus' ] ; then export KEY_OPTION="-Dsonar.projectKey=${PROJECT_KEY/\//:}" ; fi
if [ $PROJECT_KEY != 'Hipparchus-Math/hipparchus' ] ; then export PROJECT_NAME="$PROJECT_NAME ($PROJECT_KEY)" ; fi
mvn -B -f pom.xml sonar:sonar -Dsonar.login=$SONARQUBE_TOKEN -Dsonar.branch.name=${GITHUB_REF##*/} $KEY_OPTION -Dsonar.projectName="$PROJECT_NAME"
env:
SONARQUBE_TOKEN: ${{ secrets.SONARQUBE_TOKEN }}
PROJECT_KEY: ${{ github.repository }}
PROJECT_NAME: 'Hipparchus'
KEY_OPTION: ''
- name: Deployment
if: ( github.repository == 'Hipparchus-Math/hipparchus' ) && ( ( github.ref == 'refs/heads/master' ) || startsWith( github.ref, 'refs/heads/release-' ) )
run: mvn -B -U -f pom.xml -s .CI/maven-settings.xml deploy -Pci-deploy -DskipTests=true
env:
NEXUS_USERNAME: ${{ secrets.NEXUS_USERNAME }}
NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}