Skip to content
This repository was archived by the owner on Jan 21, 2022. It is now read-only.

Commit 47b935c

Browse files
committed
Merge branch 'releases/1.8.0'
2 parents 5caeab8 + 1d994d7 commit 47b935c

File tree

82 files changed

+5406
-5829
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+5406
-5829
lines changed

.clean-cf-release-build

Lines changed: 33 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,51 @@
11
set -e -x
22

33
#clean up source code, we don't need that anymore
4-
rm -rf ${BUILD_DIR}/uaa/scim
54
rm -rf ${BUILD_DIR}/uaa/common
5+
rm -rf ${BUILD_DIR}/uaa/docs
66
rm -rf ${BUILD_DIR}/uaa/gatling
7+
rm -rf ${BUILD_DIR}/uaa/gem
8+
rm -rf ${BUILD_DIR}/uaa/gradle
79
rm -rf ${BUILD_DIR}/uaa/samples
8-
rm -rf ${BUILD_DIR}/uaa/docs
10+
rm -rf ${BUILD_DIR}/uaa/scim
11+
rm -rf ${BUILD_DIR}/uaa/scripts
912
rm -rf ${BUILD_DIR}/uaa/uaa
1013

11-
rm -f ${BUILD_DIR}/uaa/README.md
12-
rm -f ${BUILD_DIR}/uaa/NOTICE
13-
rm -f ${BUILD_DIR}/uaa/.run-script.sh
14+
rm -f ${BUILD_DIR}/uaa/.clean-cf-release-build
15+
rm -f ${BUILD_DIR}/uaa/.git
16+
rm -f ${BUILD_DIR}/uaa/.gitignore
17+
rm -f ${BUILD_DIR}/uaa/.gitreview
1418
rm -f ${BUILD_DIR}/uaa/.travis.yml
15-
rm -f ${BUILD_DIR}/uaa/pom.xml
19+
rm -f ${BUILD_DIR}/uaa/build.gradle
20+
rm -f ${BUILD_DIR}/uaa/gradle.properties
21+
rm -f ${BUILD_DIR}/uaa/gradlew
22+
rm -f ${BUILD_DIR}/uaa/gradlew.bat
1623
rm -f ${BUILD_DIR}/uaa/LICENSE
24+
rm -f ${BUILD_DIR}/uaa/NOTICE
25+
rm -f ${BUILD_DIR}/uaa/README.md
26+
rm -f ${BUILD_DIR}/uaa/settings.gradle
27+
rm -f ${BUILD_DIR}/uaa/shared_versions.gradle
1728

18-
rm -rf ${BUILD_DIR}/login/src
29+
rm -rf ${BUILD_DIR}/login/.gradle
1930
rm -rf ${BUILD_DIR}/login/docs
31+
rm -rf ${BUILD_DIR}/login/gradle
32+
rm -rf ${BUILD_DIR}/login/scripts
33+
rm -rf ${BUILD_DIR}/login/src
34+
rm -rf ${BUILD_DIR}/login/uaa
2035

21-
rm -f ${BUILD_DIR}/login/README.md
22-
rm -f ${BUILD_DIR}/login/NOTICE
2336
rm -f ${BUILD_DIR}/login/.apply_spring_profiles_to_login_yaml.sh
24-
rm -f ${BUILD_DIR}/login/.cobertura-instrument.sh
25-
rm -f ${BUILD_DIR}/login/.cobertura-report.sh
37+
rm -f ${BUILD_DIR}/login/.git
2638
rm -f ${BUILD_DIR}/login/.gitignore
39+
rm -f ${BUILD_DIR}/login/.gitmodules
2740
rm -f ${BUILD_DIR}/login/.gitreview
28-
rm -f ${BUILD_DIR}/login/cloudfoundry*.iml
29-
rm -f ${BUILD_DIR}/login/.run-script.sh
3041
rm -f ${BUILD_DIR}/login/.travis.yml
31-
rm -f ${BUILD_DIR}/login/pom.xml
42+
rm -f ${BUILD_DIR}/login/build.gradle
43+
rm -f ${BUILD_DIR}/login/build_properties.gradle
44+
rm -f ${BUILD_DIR}/login/gradle.properties
45+
rm -f ${BUILD_DIR}/login/gradlew
46+
rm -f ${BUILD_DIR}/login/gradlew.bat
3247
rm -f ${BUILD_DIR}/login/LICENSE
48+
rm -f ${BUILD_DIR}/login/NOTICE
49+
rm -f ${BUILD_DIR}/login/OpenAM-README.md
50+
rm -f ${BUILD_DIR}/login/README.md
51+
rm -f ${BUILD_DIR}/login/settings.gradle

.cobertura-instrument.sh

Lines changed: 0 additions & 11 deletions
This file was deleted.

.cobertura-report.sh

Lines changed: 0 additions & 13 deletions
This file was deleted.

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
target/
21
*~
32
#*
43
.#*
@@ -28,5 +27,9 @@ Servers/
2827
*.swo
2928
coverage.ec
3029
git.properties
30+
build.properties
3131
*.md.html
3232
phantomjsdriver.log
33+
.gradle/
34+
build/
35+
/classes/

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "uaa"]
2+
path = uaa
3+
url = https://github.com/cloudfoundry/uaa.git

.run-script.sh

Lines changed: 0 additions & 41 deletions
This file was deleted.

.travis.yml

Lines changed: 32 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,46 @@
11
language: java
22
env:
33
global:
4-
- CATALINA_PID=/tmp/tomcat.pid
5-
- CATALINA_OUT=/tmp/tomcat.log
6-
- CATALINA_OPTS="-XX:MaxPermSize=256M -DUAA_PROFILE=local"
4+
- secure: "J5DYxGOG/3MjrzoEJLla/GVq2Z5Nx2oCbYEDNRbAnIIol0Dj5JK1++mXpED3+4fJKkNQBhqMZn1t6P0s/OIng0pUpg9QB7tKAMdJ+N7FKRAM5Ko8g+XhWXWAmxbob3uy2qPIEGWDczskTBmwZus/Zv3N59qwNUGq3HRiCR5BR3g="
75
matrix:
8-
- SPRING_PROFILES=default,coverage
9-
- SPRING_PROFILES=default,saml,coverage
6+
- TESTENV=default
7+
- TESTENV=default,saml
108
cache:
11-
apt: true
129
directories:
13-
- $HOME/.m2/repository
10+
- $HOME/.gradle
1411
before_install:
12+
- cp $TRAVIS_BUILD_DIR/uaa/scripts/travis/init.gradle $HOME/.gradle
1513
- git pull --unshallow
16-
- wget -O tomcat.tar.gz http://archive.apache.org/dist/tomcat/tomcat-7/v7.0.52/bin/apache-tomcat-7.0.52.tar.gz
1714
install:
18-
- $TRAVIS_BUILD_DIR/.apply_spring_profiles_to_login_yaml.sh $SPRING_PROFILES
15+
- $TRAVIS_BUILD_DIR/.apply_spring_profiles_to_login_yaml.sh $TESTENV
1916
- cat src/main/resources/login.yml
20-
- mvn -U test-compile -P coverage --quiet
21-
- mkdir -p target/tomcat
22-
- tar zxf tomcat.tar.gz -C target/tomcat --strip-components 1
23-
- export WEBAPPS_DIR=$TRAVIS_BUILD_DIR/target/tomcat/webapps
24-
- rm -rf $WEBAPPS_DIR/*
25-
- export IDENTITY_VERSION=`mvn help:evaluate -Dexpression=project.parent.version | grep -v "\[" | tail -n 1`
26-
- mvn -U dependency:copy -Dartifact=org.cloudfoundry.identity:cloudfoundry-identity-uaa:$IDENTITY_VERSION:war -DoutputDirectory=$WEBAPPS_DIR --quiet
27-
- mv $WEBAPPS_DIR/cloudfoundry-identity-uaa-*.war $WEBAPPS_DIR/uaa.war
28-
- mvn -U dependency:copy -Dartifact=org.cloudfoundry.identity:cloudfoundry-identity-app:$IDENTITY_VERSION:war -DoutputDirectory=$WEBAPPS_DIR --quiet
29-
- mv $WEBAPPS_DIR/cloudfoundry-identity-app-*.war $WEBAPPS_DIR/app.war
30-
- mvn -U dependency:copy -Dartifact=org.cloudfoundry.identity:cloudfoundry-identity-api:$IDENTITY_VERSION:war -DoutputDirectory=$WEBAPPS_DIR --quiet
31-
- mv $WEBAPPS_DIR/cloudfoundry-identity-api-*.war $WEBAPPS_DIR/api.war
32-
before_script:
33-
- $TRAVIS_BUILD_DIR/.cobertura-instrument.sh
34-
- mvn -Dwar.exploded.dir=$WEBAPPS_DIR/login war:exploded -P coverage
35-
- export CI_LOGGING_CONFIG=$TRAVIS_BUILD_DIR/src/test/resources/log4j_ci.properties
3617
script:
37-
- ./.run-script.sh start
38-
- mvn -Dspring.profiles.active=${SPRING_PROFILES} -Dlogging.config=file://$CI_LOGGING_CONFIG -Dlog4j.configuration=$CI_LOGGING_CONFIG verify -DforceIntegrationTests -DfailIfNoTests=false -Dtest="org.cloudfoundry.identity.uaa.login.feature.*" -P coverage
39-
- curl -v -X POST http://localhost:8080/login/healthz/coverage/flush
40-
- ./.run-script.sh stop
41-
- mvn -Dspring.profiles.active=${SPRING_PROFILES} -Dlogging.config=file://$CI_LOGGING_CONFIG -Dlog4j.configuration=$CI_LOGGING_CONFIG test -P coverage
18+
- ./gradlew -Dspring.profiles.active=$TESTENV :cobertura
4219
after_success:
43-
- $TRAVIS_BUILD_DIR/.cobertura-report.sh
44-
- mvn coveralls:cobertura
20+
- ./gradlew :coveralls
21+
- python scripts/travis/travis_after_all.py
22+
- export $(cat .to_export_back)
23+
- |
24+
if [ "$BUILD_LEADER" = "YES" ]; then
25+
if [ "$BUILD_AGGREGATE_STATUS" = "others_succeeded" ]; then
26+
echo "All Succeded!"
27+
if [ "$TRAVIS_BRANCH" = "develop" ]; then
28+
$TRAVIS_BUILD_DIR/scripts/travis/auto-bump-uaa.sh
29+
fi
30+
else
31+
echo "Some Failed"
32+
fi
33+
fi
4534
after_failure:
46-
- cat $CATALINA_OUT
35+
- python scripts/travis/travis_after_all.py
36+
- export $(cat .to_export_back)
37+
- |
38+
if [ "$BUILD_LEADER" = "YES" ]; then
39+
if [ "$BUILD_AGGREGATE_STATUS" = "others_failed" ]; then
40+
echo "All Failed"
41+
else
42+
echo "Some Failed"
43+
fi
44+
fi
4745
after_script:
48-
- rm -rf tomcat
49-
- rm -f tomcat.tar.gz
46+
- echo leader=$BUILD_LEADER status=$BUILD_AGGREGATE_STATUS

README.md

Lines changed: 15 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -11,27 +11,23 @@ from the UAA and no data are stored locally).
1111
## Running and Testing the Login Server
1212

1313
The Login Server is a standard JEE servlet application, and you can
14-
build a war file and deploy it to any container you like (`mvn
15-
package` and look in the `target` directory). For convenience there
16-
is also a Maven profile that will run the Login Server, the UAA and
17-
some sample apps all in the same container from the command line
18-
(assuming you have the UAA and Login Server cloned in separate
19-
directories with a common parent):
20-
21-
$ (cd uaa; mvn clean install)
22-
$ cd login-server
23-
$ mvn clean install
24-
$ mvn tomcat7:run -P integration
25-
26-
The unit tests will have been run as part of `mvn install`, or can be
27-
run on their own with `mvn test`.
28-
29-
You can run the Login Server integration tests using the command line as
30-
well. These integration tests will be skipped automatically if a Login
31-
Server and UAA have not been started locally. These tests require
14+
build a war file and deploy it to any container you like (`./gradlew
15+
:war` and look in the `build/libs` directory). For convenience there
16+
is also a Gradle task that will run the Login Server, the UAA and
17+
some sample apps all in the same container from the command line:
18+
19+
$ ./gradlew run
20+
21+
You can run the Login Server tests using the command line as
22+
well. The integration tests require
3223
[PhantomJS](http://phantomjs.org/download.html) to be installed.
3324

34-
$ mvn verify
25+
$ ./gradlew :test
26+
$ ./gradlew :integrationTest
27+
28+
You can run all tests for the login server and the uaa with
29+
30+
$ ./gradlew test integrationTest
3531

3632
There are two documents that can help you configure the login server in your environment.
3733

0 commit comments

Comments
 (0)