Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes issue #4410 - Add Glassfish automated testing to TravisCI file #4418

Merged
merged 20 commits into from
Jul 23, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 36 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,47 @@
language: java
before_install:
- wget https://archive.apache.org/dist/maven/maven-3/3.5.3/binaries/apache-maven-3.5.3-bin.zip
- unzip -qq apache-maven-3.5.3-bin.zip
- export M2_HOME=$PWD/apache-maven-3.5.3
- wget https://archive.apache.org/dist/maven/maven-3/3.5.4/binaries/apache-maven-3.5.4-bin.zip
- unzip -qq apache-maven-3.5.4-bin.zip
- export M2_HOME=$PWD/apache-maven-3.5.4
- export PATH=$M2_HOME/bin:$PATH
jdk:
- oraclejdk8
- openjdk8
env:
# - TEST_FOLDER=test/glassfish
- TEST_FOLDER=test/htmlunitaware
# - TEST_FOLDER=test/javaee6
# - TEST_FOLDER=test/javaee6web
# - TEST_FOLDER=test/javaee7
# - TEST_FOLDER=test/javaee8
# - TEST_FOLDER=test/protocolaware
# - TEST_FOLDER=test/servlet30
# - TEST_FOLDER=test/servlet30-isolated
# - TEST_FOLDER=test/servlet31
# - TEST_FOLDER=test/servlet40
install:
- echo "Overriding default install"
before_script:
- export MAVEN_SKIP_RC=true
script:
- export BASE_DIR=`pwd`
- wget http://download.oracle.com/glassfish/5.0/release/glassfish-5.0.zip
- unzip -q glassfish-5.0.zip
- echo "Glassfish 5.0 is installed in " $BASE_DIR/glassfish5
- export MAVEN_OPTS="-Dorg.slf4j.simpleLogger.log.org.apache.maven.cl‌​i.transfer.Slf4jMave‌​nTransferListener=off"
- mvn -B clean install
- cd $BASE_DIR/test
- echo "Patching Mojarra JAR"
- mvn -B -Dglassfish.patch.home=$BASE_DIR/glassfish5 -P glassfish-patch -N validate
- echo "Starting Glassfish 5.0"
- mvn -B -Dglassfish.cargo.home=$BASE_DIR/glassfish5 -P glassfish-cargo -N cargo:start
- cd $BASE_DIR/$TEST_FOLDER
- echo "Deploying applications"
- mvn -B -Dglassfish.cargo.home=$BASE_DIR/glassfish5 -P glassfish-cargo cargo:redeploy
- echo "Running tests"
- mvn -B -P integration verify
- echo "Shutting down Glassfish 5.0"
- mvn -B -Dglassfish.cargo.home=$BASE_DIR/glassfish5 -P glassfish-cargo -N cargo:stop
addons:
apt:
packages:
Expand Down
4 changes: 2 additions & 2 deletions test/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
<plugin>
<groupId>org.codehaus.cargo</groupId>
<artifactId>cargo-maven2-plugin</artifactId>
<version>1.6.2</version>
<version>1.6.8</version>
</plugin>
<plugin>
<groupId>org.apache.maven.wagon</groupId>
Expand Down Expand Up @@ -271,7 +271,7 @@
<glassfish.cargo.configType>standalone</glassfish.cargo.configType>
<glassfish.cargo.config>${glassfish.cargo.home}/glassfish/domains</glassfish.cargo.config>
<glassfish.cargo.domain>domain1</glassfish.cargo.domain>
<glassfish.cargo.id>glassfish4x</glassfish.cargo.id>
<glassfish.cargo.id>glassfish5x</glassfish.cargo.id>
<glassfish.cargo.serverName>localhost</glassfish.cargo.serverName>
<glassfish.cargo.servletPort>8080</glassfish.cargo.servletPort>
</properties>
Expand Down