forked from SonarSource/sonarlint-eclipse
/
cix.sh
executable file
·18 lines (11 loc) · 946 Bytes
/
cix.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash
set -euo pipefail
CURRENT_VERSION=`mvn help:evaluate -Dtycho.mode=maven -Dexpression="project.version" | grep -v '^\[\|Download\w\+\:'`
RELEASE_VERSION=`echo $CURRENT_VERSION | sed "s/-.*//g"`
QA_VERSION="$RELEASE_VERSION.$CI_BUILD_NUMBER"
# Download QA update site and put it at the location it would have been after a build
mvn -B -e dependency:get -Dtycho.mode=maven -Dartifact=org.sonarsource.sonarlint.eclipse:org.sonarlint.eclipse.site:$QA_VERSION:zip
mvn -B -e dependency:unpack -Dtycho.mode=maven -Dartifact=org.sonarsource.sonarlint.eclipse:org.sonarlint.eclipse.site:$QA_VERSION:zip -DoutputDirectory=org.sonarlint.eclipse.site/target/repository/
REPO_URL="file://`pwd`/org.sonarlint.eclipse.site/target/repository/"
cd its
mvn -B -e -V clean verify -Dtarget.platform=$TARGET_PLATFORM -Dtycho.localArtifacts=ignore -Dtycho.disableP2Mirrors=true -Dsonarlint-eclipse.p2.url=$REPO_URL -Dsonar.runtimeVersion=$SQ_VERSION