Travis improvements
- Cache dependencies - Use JBoss repositories to download Maven dependencies
This commit is contained in:
parent
d2da206d6b
commit
5d44c7938a
3 changed files with 61 additions and 5 deletions
|
@ -1,7 +1,11 @@
|
||||||
language: java
|
language: java
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
cache: false
|
directories:
|
||||||
|
- $HOME/.m2
|
||||||
|
|
||||||
|
before_cache:
|
||||||
|
- rm -rf $HOME/.m2/repository/org/keycloak
|
||||||
|
|
||||||
env:
|
env:
|
||||||
global:
|
global:
|
||||||
|
|
52
maven-settings.xml
Normal file
52
maven-settings.xml
Normal file
|
@ -0,0 +1,52 @@
|
||||||
|
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
|
||||||
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
|
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
|
||||||
|
http://maven.apache.org/xsd/settings-1.0.0.xsd">
|
||||||
|
|
||||||
|
<pluginGroups>
|
||||||
|
<pluginGroup>org.jenkins-ci.tools</pluginGroup>
|
||||||
|
</pluginGroups>
|
||||||
|
|
||||||
|
<profiles>
|
||||||
|
<profile>
|
||||||
|
<id>jboss-public-repository</id>
|
||||||
|
<repositories>
|
||||||
|
<repository>
|
||||||
|
<id>jboss-public-repository-group</id>
|
||||||
|
<name>JBoss Public Maven Repository Group</name>
|
||||||
|
<url>http://repository.jboss.org/nexus/content/groups/public/</url>
|
||||||
|
<layout>default</layout>
|
||||||
|
<releases>
|
||||||
|
<enabled>true</enabled>
|
||||||
|
<updatePolicy>never</updatePolicy>
|
||||||
|
</releases>
|
||||||
|
<snapshots>
|
||||||
|
<enabled>true</enabled>
|
||||||
|
<updatePolicy>never</updatePolicy>
|
||||||
|
</snapshots>
|
||||||
|
</repository>
|
||||||
|
</repositories>
|
||||||
|
<pluginRepositories>
|
||||||
|
<pluginRepository>
|
||||||
|
<id>jboss-public-repository-group</id>
|
||||||
|
<name>JBoss Public Maven Repository Group</name>
|
||||||
|
<url>http://repository.jboss.org/nexus/content/groups/public/</url>
|
||||||
|
<layout>default</layout>
|
||||||
|
<releases>
|
||||||
|
<enabled>true</enabled>
|
||||||
|
<updatePolicy>never</updatePolicy>
|
||||||
|
</releases>
|
||||||
|
<snapshots>
|
||||||
|
<enabled>true</enabled>
|
||||||
|
<updatePolicy>never</updatePolicy>
|
||||||
|
</snapshots>
|
||||||
|
</pluginRepository>
|
||||||
|
</pluginRepositories>
|
||||||
|
</profile>
|
||||||
|
</profiles>
|
||||||
|
|
||||||
|
<activeProfiles>
|
||||||
|
<activeProfile>jboss-public-repository</activeProfile>
|
||||||
|
</activeProfiles>
|
||||||
|
|
||||||
|
</settings>
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
function run-server-tests() {
|
function run-server-tests() {
|
||||||
cd testsuite/integration-arquillian
|
cd testsuite/integration-arquillian
|
||||||
mvn install -B -nsu -Pauth-server-wildfly -DskipTests
|
mvn -s $TRAVIS_BUILD_DIR/maven-settings.xml install -B -nsu -Pauth-server-wildfly -DskipTests
|
||||||
|
|
||||||
cd tests/base
|
cd tests/base
|
||||||
mvn test -B -nsu -Pauth-server-wildfly "-Dtest=$1" $2 2>&1 | java -cp ../../../utils/target/classes org.keycloak.testsuite.LogTrimmer
|
mvn test -B -nsu -Pauth-server-wildfly "-Dtest=$1" $2 2>&1 | java -cp ../../../utils/target/classes org.keycloak.testsuite.LogTrimmer
|
||||||
|
@ -61,7 +61,7 @@ echo Compiling Keycloak
|
||||||
( while : ; do echo "Compiling, please wait..." ; sleep 50 ; done ) &
|
( while : ; do echo "Compiling, please wait..." ; sleep 50 ; done ) &
|
||||||
COMPILING_PID=$!
|
COMPILING_PID=$!
|
||||||
TMPFILE=`mktemp`
|
TMPFILE=`mktemp`
|
||||||
if ! mvn install -B -nsu -Pdistribution -DskipTests -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn &> "$TMPFILE"; then
|
if ! mvn -s $TRAVIS_BUILD_DIR/maven-settings.xml install -B -nsu -Pdistribution -DskipTests -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn &> "$TMPFILE"; then
|
||||||
cat "$TMPFILE"
|
cat "$TMPFILE"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
@ -100,7 +100,7 @@ fi
|
||||||
|
|
||||||
if [ $1 == "crossdc-server" ]; then
|
if [ $1 == "crossdc-server" ]; then
|
||||||
cd testsuite/integration-arquillian
|
cd testsuite/integration-arquillian
|
||||||
mvn install -B -nsu -Pauth-servers-crossdc-jboss,auth-server-wildfly,cache-server-infinispan -DskipTests
|
mvn -s $TRAVIS_BUILD_DIR/maven-settings.xml install -B -nsu -Pauth-servers-crossdc-jboss,auth-server-wildfly,cache-server-infinispan -DskipTests
|
||||||
|
|
||||||
cd tests/base
|
cd tests/base
|
||||||
mvn clean test -B -nsu -Pcache-server-infinispan,auth-servers-crossdc-jboss,auth-server-wildfly -Dtest=org.keycloak.testsuite.crossdc.**.* 2>&1 |
|
mvn clean test -B -nsu -Pcache-server-infinispan,auth-servers-crossdc-jboss,auth-server-wildfly -Dtest=org.keycloak.testsuite.crossdc.**.* 2>&1 |
|
||||||
|
@ -110,7 +110,7 @@ fi
|
||||||
|
|
||||||
if [ $1 == "crossdc-adapter" ]; then
|
if [ $1 == "crossdc-adapter" ]; then
|
||||||
cd testsuite/integration-arquillian
|
cd testsuite/integration-arquillian
|
||||||
mvn install -B -nsu -Pauth-servers-crossdc-jboss,auth-server-wildfly,cache-server-infinispan,app-server-wildfly -DskipTests
|
mvn -s $TRAVIS_BUILD_DIR/maven-settings.xml install -B -nsu -Pauth-servers-crossdc-jboss,auth-server-wildfly,cache-server-infinispan,app-server-wildfly -DskipTests
|
||||||
|
|
||||||
cd tests/base
|
cd tests/base
|
||||||
mvn clean test -B -nsu -Pcache-server-infinispan,auth-servers-crossdc-jboss,auth-server-wildfly,app-server-wildfly -Dtest=org.keycloak.testsuite.adapter.**.crossdc.**.* 2>&1 |
|
mvn clean test -B -nsu -Pcache-server-infinispan,auth-servers-crossdc-jboss,auth-server-wildfly,app-server-wildfly -Dtest=org.keycloak.testsuite.adapter.**.crossdc.**.* 2>&1 |
|
||||||
|
|
Loading…
Reference in a new issue