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

language: java language: java
sudo: false
install: true install: true


jdk: jdk:
cache: cache:
directories: directories:
- '$HOME/.m2/repository' - '$HOME/.m2/repository'

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



+ 3
- 4
travis.sh View File

set -euo pipefail set -euo pipefail


function installTravisTools { 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 case "$DATABASE" in


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


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


MYSQL) MYSQL)
mysql -e "GRANT ALL ON sonar.* TO 'sonar'@'localhost';" -uroot mysql -e "GRANT ALL ON sonar.* TO 'sonar'@'localhost';" -uroot
mysql -e "FLUSH PRIVILEGES;" -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