KEYCLOAK-4870

Travis doesn't run unit tests
This commit is contained in:
Stian Thorgersen 2017-05-08 14:35:17 +02:00
parent f4f9a98e70
commit f0a0b553e5
3 changed files with 15 additions and 2 deletions

View file

@ -25,7 +25,7 @@ before_script:
- export MAVEN_SKIP_RC=true
install:
- travis_wait 60 mvn install --no-snapshot-updates -Pdistribution -DskipTests=true -B -V -q
- travis_wait 60 mvn install --no-snapshot-updates -Pdistribution -DskipTestsuite -B -V -q
script:
- ./travis-run-tests.sh $TESTS

13
pom.xml
View file

@ -192,7 +192,6 @@
<module>adapters</module>
<module>authz</module>
<module>examples</module>
<module>testsuite</module>
<module>misc</module>
</modules>
@ -1540,6 +1539,18 @@
</properties>
</profile>
<profile>
<id>testsuite</id>
<activation>
<property>
<name>!skipTestsuite</name>
</property>
</activation>
<modules>
<module>testsuite</module>
</modules>
</profile>
<profile>
<id>distribution</id>
<modules>

View file

@ -1,5 +1,7 @@
#!/bin/bash -e
travis_wait 60 mvn install --no-snapshot-updates -DskipTests=true -B -V -q -f testsuite
if [ $1 == "old" ]; then
mvn test -B --no-snapshot-updates -f testsuite/integration
mvn test -B --no-snapshot-updates -f testsuite/jetty