aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Gageot <david@gageot.net>2015-06-17 09:51:08 +0100
committerDavid Gageot <david@gageot.net>2015-06-17 10:20:22 +0100
commit456abf92546780d7518d91a5f610a67bc13c87c0 (patch)
tree27e0965871b05a057ef9f76e63604055b5231ba2
parent5328a43a174d506e13211d5b9c4167a7d4a3e01e (diff)
downloadsonar-scanner-cli-456abf92546780d7518d91a5f610a67bc13c87c0.tar.gz
sonar-scanner-cli-456abf92546780d7518d91a5f610a67bc13c87c0.zip
Fixing TravisCI build
-rw-r--r--Dockerfile14
-rwxr-xr-xtravis.sh5
2 files changed, 16 insertions, 3 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..2487af2
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,14 @@
+FROM maven:3.2-jdk-7
+
+RUN apt-get update && apt-get install -y \
+ bzip2 \
+ vim \
+ jq
+
+ENV TESTS SONARQUBE_SNAPSHOT
+ENV PATH ~/.local/bin:$PATH
+
+WORKDIR /root
+CMD ["./travis.sh"]
+
+ADD . /root/
diff --git a/travis.sh b/travis.sh
index 4f81d21..ecbf8b0 100755
--- a/travis.sh
+++ b/travis.sh
@@ -3,10 +3,9 @@
set -euo pipefail
function installTravisTools {
- curl -sSL https://raw.githubusercontent.com/dgageot/travis-utils/master/install.sh | sh
- source /tmp/travis-utils/utils.sh
+ curl -sSL https://raw.githubusercontent.com/sonarsource/travis-utils/v2.1/install.sh | bash
}
installTravisTools
-build_green_sonarqube_snapshot
+travis_build_green_sonarqube_snapshot
mvn verify -B -e -V