Browse Source

Use Version 2 of TravisCI toolbelt

tags/5.2-RC1
David Gageot 9 years ago
parent
commit
0bff456213
2 changed files with 4 additions and 5 deletions
  1. 1
    1
      .travis.yml
  2. 3
    4
      travis.sh

+ 1
- 1
.travis.yml View File

@@ -1,5 +1,4 @@
language: java
sudo: false
install: true

jdk:
@@ -16,6 +15,7 @@ script:
cache:
directories:
- '$HOME/.m2/repository'

before_cache:
- 'rm -rf $HOME/.m2/repository/org/codehaus/sonar'


+ 3
- 4
travis.sh View File

@@ -3,8 +3,7 @@
set -euo pipefail

function installTravisTools {
curl -sSL https://raw.githubusercontent.com/dgageot/travis-utils/v1/install.sh | sh
source /tmp/travis-utils/utils.sh
curl -sSL https://raw.githubusercontent.com/dgageot/travis-utils/v2/install.sh | bash
}

case "$DATABASE" in
@@ -18,7 +17,7 @@ POSTGRES)

psql -c 'create database sonar;' -U postgres

runDatabaseCI "postgresql" "jdbc:postgresql://localhost/sonar" "postgres" ''
travis_runDatabaseCI "postgresql" "jdbc:postgresql://localhost/sonar" "postgres" ''
;;

MYSQL)
@@ -29,7 +28,7 @@ MYSQL)
mysql -e "GRANT ALL ON sonar.* TO 'sonar'@'localhost';" -uroot
mysql -e "FLUSH PRIVILEGES;" -uroot

runDatabaseCI "mysql" "jdbc:mysql://localhost/sonar?useUnicode=true&characterEncoding=utf8&rewriteBatchedStatements=true&useConfigs=maxPerformance" "sonar" 'sonar'
travis_runDatabaseCI "mysql" "jdbc:mysql://localhost/sonar?useUnicode=true&characterEncoding=utf8&rewriteBatchedStatements=true&useConfigs=maxPerformance" "sonar" 'sonar'
;;

*)

Loading…
Cancel
Save