forked from keycloak/keycloak
-
Notifications
You must be signed in to change notification settings - Fork 0
/
travis-run-tests.sh
executable file
·42 lines (33 loc) · 1.64 KB
/
travis-run-tests.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/bin/bash -e
mvn install --no-snapshot-updates -DskipTests=true -f testsuite
if [ $1 == "old" ]; then
mvn test -B --no-snapshot-updates -f testsuite/integration
mvn test -B --no-snapshot-updates -f testsuite/jetty
mvn test -B --no-snapshot-updates -f testsuite/tomcat6
mvn test -B --no-snapshot-updates -f testsuite/tomcat7
mvn test -B --no-snapshot-updates -f testsuite/tomcat8
fi
if [ $1 == "group1" ]; then
cd testsuite/integration-arquillian/tests/base
mvn test -B --no-snapshot-updates -Dtest=org.keycloak.testsuite.ad*.**.*Test
fi
if [ $1 == "group2" ]; then
cd testsuite/integration-arquillian/tests/base
mvn test -B --no-snapshot-updates -Dtest=org.keycloak.testsuite.ac*.**.*Test,org.keycloak.testsuite.b*.**.*Test,org.keycloak.testsuite.cli*.**.*Test,org.keycloak.testsuite.co*.**.*Test
fi
if [ $1 == "group3" ]; then
cd testsuite/integration-arquillian/tests/base
mvn test -B --no-snapshot-updates -Dtest=org.keycloak.testsuite.au*.**.*Test,org.keycloak.testsuite.d*.**.*Test,org.keycloak.testsuite.e*.**.*Test,org.keycloak.testsuite.f*.**.*Test,org.keycloak.testsuite.i*.**.*Test
fi
if [ $1 == "group4" ]; then
cd testsuite/integration-arquillian/tests/base
mvn test -B --no-snapshot-updates -Dtest=org.keycloak.testsuite.k*.**.*Test,org.keycloak.testsuite.m*.**.*Test,org.keycloak.testsuite.o*.**.*Test,org.keycloak.testsuite.s*.**.*Test
fi
if [ $1 == "adapter" ]; then
cd testsuite/integration-arquillian/tests/other/adapters
mvn test -B --no-snapshot-updates
fi
if [ $1 == "console" ]; then
cd testsuite/integration-arquillian/tests/other/console
mvn test -B --no-snapshot-updates
fi