]> source.dussan.org Git - sonar-scanner-cli.git/commitdiff
Travis build should use a snapshot of SonarQube
authorDavid Gageot <david@gageot.net>
Fri, 5 Jun 2015 09:24:44 +0000 (11:24 +0200)
committerDavid Gageot <david@gageot.net>
Fri, 5 Jun 2015 13:09:44 +0000 (15:09 +0200)
.travis.yml
travis.sh [new file with mode: 0755]

index 715841b5b32e38dd2e62020c73b4c14c5004e653..8bf843bb08b9815839f9683a748a76f251a44236 100644 (file)
@@ -4,14 +4,9 @@ jdk:
   - oraclejdk8
   - openjdk7
 
-script: mvn clean verify
-
 install: true
+script: ./travis.sh
 
-# Container-based infrastructure
-sudo: false
-
-# Keep Maven local repository between builds
 cache:
   directories:
     - '$HOME/.m2/repository'
diff --git a/travis.sh b/travis.sh
new file mode 100755 (executable)
index 0000000..4f81d21
--- /dev/null
+++ b/travis.sh
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+set -euo pipefail
+
+function installTravisTools {
+  curl -sSL https://raw.githubusercontent.com/dgageot/travis-utils/master/install.sh | sh
+  source /tmp/travis-utils/utils.sh
+}
+
+installTravisTools
+build_green_sonarqube_snapshot
+mvn verify -B -e -V