Skip to content

Commit

Permalink
Move plugins_min_versions_path variable where needed
Browse files Browse the repository at this point in the history
  • Loading branch information
Janos Gyerik authored and dbmeneses committed Nov 7, 2017
1 parent e3d15f0 commit 4222e47
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 0 additions & 2 deletions cix.sh
@@ -1,8 +1,6 @@
#!/bin/bash
set -euo pipefail

plugins_min_versions_path=core/src/main/resources/plugins_min_versions.txt

./set_maven_build_version.sh "$CI_BUILD_NUMBER"
./run-integration-tests.sh "$SQ_VERSION"

5 changes: 3 additions & 2 deletions run-integration-tests.sh
Expand Up @@ -11,11 +11,11 @@ fi
set -ex
SQ_VERSION=$1

cd its
plugins_min_versions_path=core/src/main/resources/plugins_min_versions.txt

case "$SQ_VERSION" in
LTS)
minVersions=$(sed -ne '/^[a-z]*=[0-9.]*$/s/$/;/p' < "../$plugins_min_versions_path")
minVersions=$(sed -ne '/^[a-z]*=[0-9.]*$/s/$/;/p' < "$plugins_min_versions_path")
eval "$minVersions"
JAVA_VERSION=$java
PHP_VERSION=$php
Expand Down Expand Up @@ -53,6 +53,7 @@ echo "Running with SQ=$SQ_VERSION JAVA_VERSION=$JAVA_VERSION JAVASCRIPT_VERSION=

export MAVEN_OPTS=-Xmx1024m

cd its
mvn verify -Pits -Dsonar.runtimeVersion=$SQ_VERSION \
-DjavaVersion=$JAVA_VERSION \
-DphpVersion=$PHP_VERSION \
Expand Down

0 comments on commit 4222e47

Please sign in to comment.