Simplify test invocation
This commit is contained in:
parent
51f6867dc0
commit
75414fb1c3
@ -22,11 +22,9 @@ before_install:
|
|||||||
- psql -c 'CREATE DATABASE test_db;' -U postgres
|
- psql -c 'CREATE DATABASE test_db;' -U postgres
|
||||||
- psql -U postgres test_db < extensions/database/tests/conf/travis-pgsql.sql
|
- 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
|
- cp extensions/database/tests/conf/travis_tests.xml extensions/database/tests/conf/tests.xml
|
||||||
- mvn process-resources
|
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- ./refine server_test
|
- ./refine test
|
||||||
- ./refine extensions_test
|
|
||||||
|
|
||||||
after_success:
|
after_success:
|
||||||
- java -cp ~/codacy-coverage-reporter-assembly-latest.jar com.codacy.CodacyCoverageReporter -l Java -r build/report/jacoco.xml
|
- java -cp ~/codacy-coverage-reporter-assembly-latest.jar com.codacy.CodacyCoverageReporter -l Java -r build/report/jacoco.xml
|
||||||
|
@ -37,6 +37,7 @@ before_test:
|
|||||||
psql -U postgres test_db < extensions\database\tests\conf\travis-pgsql.sql
|
psql -U postgres test_db < extensions\database\tests\conf\travis-pgsql.sql
|
||||||
|
|
||||||
copy extensions\database\tests\conf\appveyor_tests.xml extensions\database\tests\conf\tests.xml
|
copy extensions\database\tests\conf\appveyor_tests.xml extensions\database\tests\conf\tests.xml
|
||||||
|
- cmd: mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V
|
||||||
|
|
||||||
test_script:
|
test_script:
|
||||||
- cmd: echo Running test_script...
|
- cmd: echo Running test_script...
|
||||||
@ -45,6 +46,4 @@ test_script:
|
|||||||
|
|
||||||
path
|
path
|
||||||
|
|
||||||
refine server_test
|
refine test
|
||||||
|
|
||||||
refine extensions_test
|
|
||||||
|
4
refine
4
refine
@ -623,12 +623,12 @@ ui_test() {
|
|||||||
|
|
||||||
server_test() {
|
server_test() {
|
||||||
mvn_prepare
|
mvn_prepare
|
||||||
$MVN test -pl main
|
$MVN test -f main
|
||||||
}
|
}
|
||||||
|
|
||||||
extensions_test() {
|
extensions_test() {
|
||||||
mvn_prepare
|
mvn_prepare
|
||||||
$MVN test -pl extensions
|
$MVN test -f extensions
|
||||||
}
|
}
|
||||||
|
|
||||||
run() {
|
run() {
|
||||||
|
@ -47,6 +47,7 @@ echo.
|
|||||||
echo build ..................... Build OpenRefine
|
echo build ..................... Build OpenRefine
|
||||||
echo run ....................... Run OpenRefine
|
echo run ....................... Run OpenRefine
|
||||||
echo.
|
echo.
|
||||||
|
echo test ...................... Run all the tests
|
||||||
echo server_test ............... Run the server tests
|
echo server_test ............... Run the server tests
|
||||||
echo extensions_test ........... Run the extensions tests
|
echo extensions_test ........... Run the extensions tests
|
||||||
echo.
|
echo.
|
||||||
@ -234,8 +235,9 @@ echo.
|
|||||||
:gotMvnHome
|
:gotMvnHome
|
||||||
set MVN_ACTION=""%ACTION%""
|
set MVN_ACTION=""%ACTION%""
|
||||||
if ""%ACTION%"" == ""build"" set MVN_ACTION=""process-resources compile dependency:build-classpath""
|
if ""%ACTION%"" == ""build"" set MVN_ACTION=""process-resources compile dependency:build-classpath""
|
||||||
if ""%ACTION%"" == ""server_test"" set MVN_ACTION=""process-resources compile test -pl main""
|
if ""%ACTION%"" == ""test"" set MVN_ACTION=""process-resources compile test""
|
||||||
if ""%ACTION%"" == ""extensions_test"" set MVN_ACTION=""process-resources compile test -pl extensions""
|
if ""%ACTION%"" == ""server_test"" set MVN_ACTION=""process-resources compile test -f main""
|
||||||
|
if ""%ACTION%"" == ""extensions_test"" set MVN_ACTION=""process-resources compile test -f extensions""
|
||||||
"%MAVEN_HOME%\bin\mvn.cmd" %MVN_ACTION%
|
"%MAVEN_HOME%\bin\mvn.cmd" %MVN_ACTION%
|
||||||
goto end
|
goto end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user