aboutsummaryrefslogtreecommitdiffstats
path: root/travis.sh
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2016-06-08 17:14:15 +0200
committerStas Vilchik <vilchiks@gmail.com>2016-06-09 09:34:39 +0200
commit5b82ca5d5aa0c2ca080ddb115df2a37821c22923 (patch)
tree1366542f4b75c34e7e8d2bec482283bf75a45c76 /travis.sh
parentc113c2730aee79277a7ae600672b72c5e1d835b5 (diff)
downloadsonarqube-5b82ca5d5aa0c2ca080ddb115df2a37821c22923.tar.gz
sonarqube-5b82ca5d5aa0c2ca080ddb115df2a37821c22923.zip
use repox as npm registry on travis
Diffstat (limited to 'travis.sh')
-rwxr-xr-xtravis.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/travis.sh b/travis.sh
index 74820c6fae8..4d7066acec2 100755
--- a/travis.sh
+++ b/travis.sh
@@ -6,6 +6,7 @@ function configureTravis {
mkdir ~/.local
curl -sSL https://github.com/SonarSource/travis-utils/tarball/v25 | tar zx --strip-components 1 -C ~/.local
source ~/.local/bin/install
+ echo "$ARTIFACTORY_URL/npmjs/" > .npmrc
}
configureTravis
@@ -37,7 +38,7 @@ CI)
if [[ $CURRENT_VERSION =~ "-SNAPSHOT" ]]; then
echo "======= Found SNAPSHOT version ======="
# Do not deploy a SNAPSHOT version but the release version related to this build
- set_maven_build_version $TRAVIS_BUILD_NUMBER
+ set_maven_build_version $TRAVIS_BUILD_NUMBER
else
echo "======= Found RELEASE version ======="
fi
@@ -45,9 +46,9 @@ CI)
# analysis is currently executed by SonarSource internal infrastructure
mvn deploy \
-Pdeploy-sonarsource \
- -B -e -V
+ -B -e -V
+
-
elif [ "$TRAVIS_PULL_REQUEST" != "false" ] && [ -n "${GITHUB_TOKEN:-}" ]; then
strongEcho 'Build and analyze pull request, no deploy'