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;'
|
|
|
|
- mysql -u root test_db < extensions/database/test/conf/travis-mysql.sql
|
|
|
|
- psql -c 'CREATE DATABASE test_db;' -U postgres
|
|
|
|
- psql -U postgres test_db < extensions/database/test/conf/travis-pgsql.sql
|
2018-01-31 09:36:11 +01:00
|
|
|
- cp extensions/database/test/conf/travis_tests.xml extensions/database/test/conf/tests.xml
|
2017-08-03 12:20:21 +02:00
|
|
|
|
2018-01-03 18:37:51 +01:00
|
|
|
script:
|
|
|
|
- ./refine server_test
|
|
|
|
- ./refine extensions_test
|
2017-08-03 12:20:21 +02:00
|
|
|
|
|
|
|
after_success:
|
|
|
|
- java -cp ~/codacy-coverage-reporter-assembly-latest.jar com.codacy.CodacyCoverageReporter -l Java -r build/report/jacoco.xml
|
|
|
|
|