Skip to content

Commit

Permalink
KEYCLOAK-4870
Browse files Browse the repository at this point in the history
Travis doesn't run unit tests
  • Loading branch information
stianst committed May 8, 2017
1 parent f4f9a98 commit f0a0b55
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
13 changes: 12 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,6 @@
<module>adapters</module>
<module>authz</module>
<module>examples</module>
<module>testsuite</module>
<module>misc</module>
</modules>

Expand Down Expand Up @@ -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>
Expand Down
2 changes: 2 additions & 0 deletions travis-run-tests.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit f0a0b55

Please sign in to comment.