aboutsummaryrefslogtreecommitdiffstats
path: root/travis.sh
diff options
context:
space:
mode:
authorDavid Rautureau <david.rautureau@sonarsource.com>2018-03-23 17:17:10 +0100
committerJanos Gyerik <janos.gyerik@sonarsource.com>2018-04-04 14:25:33 +0200
commit4dec6ebfeef852905d9db4670757238f797c9d58 (patch)
tree223bd81f1c9cf664608be69c77f1279888a32a22 /travis.sh
parent8955ad9bad3490a2562a5972bad09c72bdd8b2cc (diff)
downloadsonarqube-4dec6ebfeef852905d9db4670757238f797c9d58.tar.gz
sonarqube-4dec6ebfeef852905d9db4670757238f797c9d58.zip
Build on cix [skip ci]
Diffstat (limited to 'travis.sh')
-rwxr-xr-xtravis.sh27
1 files changed, 2 insertions, 25 deletions
diff --git a/travis.sh b/travis.sh
index 300ee86f70d..60902db3ee3 100755
--- a/travis.sh
+++ b/travis.sh
@@ -23,12 +23,6 @@ function installJdk8 {
export PATH=$JAVA_HOME/bin:$PATH
}
-function installNode {
- set +u
- source ~/.nvm/nvm.sh && nvm install 8
- set -u
-}
-
#
# Configure Maven settings and install some script utilities
#
@@ -58,23 +52,9 @@ keep_alive &
# @TravisCI please provide the feature natively, like at AppVeyor or CircleCI ;-)
cancel_branch_build_with_pr || if [[ $? -eq 1 ]]; then exit 0; fi
-# configure environment variables for Artifactory
-export GIT_COMMIT=$TRAVIS_COMMIT
-export BUILD_NUMBER=$TRAVIS_BUILD_NUMBER
-if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
- export GIT_BRANCH=$TRAVIS_BRANCH
- unset PULL_REQUEST_BRANCH_TARGET
- unset PULL_REQUEST_NUMBER
-else
- export GIT_BRANCH=$TRAVIS_PULL_REQUEST_BRANCH
- export PULL_REQUEST_BRANCH_TARGET=$TRAVIS_BRANCH
- export PULL_REQUEST_NUMBER=$TRAVIS_PULL_REQUEST
-fi
-
case "$TARGET" in
BUILD)
-
installJdk8
installNode
@@ -146,11 +126,8 @@ BUILD)
;;
WEB_TESTS)
- installNode
- curl -o- -L https://yarnpkg.com/install.sh | bash
- export PATH=$HOME/.yarn/bin:$PATH
- cd server/sonar-web && yarn && yarn validate
- cd ../sonar-vsts && yarn && yarn validate
+ ./gradlew :server:sonar-web:yarn :server:sonar-web:yarn_validate --no-daemon --console plain
+ ./gradlew :server:sonar-vsts:yarn :server:sonar-vsts:yarn_validate --no-daemon --console plain
;;
*)