2013-05-26 17:11:04 +02:00
|
|
|
language: java
|
|
|
|
jdk:
|
2015-01-26 20:23:35 +01:00
|
|
|
- oraclejdk8
|
2018-05-19 19:59:53 +02:00
|
|
|
- openjdk8
|
2018-01-14 03:24:56 +01:00
|
|
|
|
|
|
|
addons:
|
|
|
|
mariadb: '10.0'
|
|
|
|
|
|
|
|
services:
|
|
|
|
- mysql
|
|
|
|
- postgresql
|
2017-08-03 12:20:21 +02:00
|
|
|
|
|
|
|
env:
|
|
|
|
# encrypted Codacy key, see https://docs.travis-ci.com/user/encryption-keys/
|
|
|
|
- secure: "VmS4He99YlI6rdmw8Q25OZ9kUp11sRbt0W1QMBvA5lzNSmhN1Q1KtaMj9AGwpCZWcyGWri4AQxEmloARxACxQHXRmNE7ro2DESGw46RAocBAf+RfBxYTifIyUGu5TnSCQhz56SkgpyWpedZAZWyah9ZxgUMfet4KXFUfeiUgYQA="
|
2013-05-26 17:16:14 +02:00
|
|
|
|
2017-08-03 12:20:21 +02:00
|
|
|
before_install:
|
|
|
|
- wget -O ~/codacy-coverage-reporter-assembly-latest.jar https://github.com/codacy/codacy-coverage-reporter/releases/download/2.0.0/codacy-coverage-reporter-2.0.0-assembly.jar
|
2018-01-14 03:24:56 +01:00
|
|
|
# create test database for mysql, mariadb and postgresql
|
|
|
|
- mysql -u root -e 'CREATE DATABASE test_db;'
|
2018-09-16 16:34:47 +02:00
|
|
|
- mysql -u root test_db < extensions/database/tests/conf/travis-mysql.sql
|
2018-01-14 03:24:56 +01:00
|
|
|
- psql -c 'CREATE DATABASE test_db;' -U postgres
|
2018-09-16 16:34:47 +02:00
|
|
|
- psql -U postgres test_db < extensions/database/tests/conf/travis-pgsql.sql
|
|
|
|
- cp extensions/database/tests/conf/travis_tests.xml extensions/database/tests/conf/tests.xml
|
|
|
|
- mvn process-resources
|
2017-08-03 12:20:21 +02:00
|
|
|
|
2018-01-03 18:37:51 +01:00
|
|
|
script:
|
2018-09-16 16:34:47 +02:00
|
|
|
- ./refine test
|
2017-08-03 12:20:21 +02:00
|
|
|
|
|
|
|
after_success:
|
2018-09-16 21:35:55 +02:00
|
|
|
- mvn prepare-package -DskipTests=true
|
|
|
|
- java -cp ~/codacy-coverage-reporter-assembly-latest.jar com.codacy.CodacyCoverageReporter -l Java -r target/report/jacoco-merged.exec
|
2017-08-03 12:20:21 +02:00
|
|
|
|
2018-09-16 16:34:47 +02:00
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- $HOME/.m2
|
|
|
|
|