Skip to content

Commit

Permalink
Merge pull request apache#1597 from blackleg/test_platform_modules
Browse files Browse the repository at this point in the history
[TRAVIS] Run tests for platform modules
  • Loading branch information
matthiasblaesing authored Nov 6, 2019
2 parents d6d072e + dfe0f5c commit 46a06f9
Show file tree
Hide file tree
Showing 2 changed files with 122 additions and 0 deletions.
94 changes: 94 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ addons:
- ant
- ant-optional
- xvfb
- openjfx
install:
- export PATH="$PATH:$TRAVIS_BUILD_DIR/nbbuild/travis"
- export DISPLAY=:99.0
- Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
- sleep 3
Expand Down Expand Up @@ -80,6 +82,98 @@ matrix:
- env: SIGTEST=false COMPILETEST=false LICENSE=false CV=false RUN_TESTS_JDK8=false RUN_TESTS_JDK9PLUS=true TEST_JDK_VERSION="--feature 12 --license GPL" TEST_RUN_OPTIONS='-Dtest.run.args=--add-exports=jdk.javadoc/com.sun.tools.javadoc.main=ALL-UNNAMED -Dtest.use.jdk.javac=true' TEST_MODULES="java/java.completion" OPTS="-Dcluster.config=java -quiet build -Djavac.compilerargs=-nowarn -Dbuild.compiler.deprecation=false"
jdk: openjdk8

- name: Test platform modules, Batch 1
jdk: openjdk8
env:
- OPTS="-silent -Dcluster.config=platform -Djavac.compilerargs=-nowarn -Dbuild.compiler.deprecation=false -Dtest-unit-sys-prop.ignore.random.failures=true -Dvanilla.javac.exists=true"
before_script:
- ant $OPTS clean
- ant $OPTS build
script:
- hide-logs.sh ant $OPTS -f platform/api.htmlui test
- hide-logs.sh ant $OPTS -f platform/api.intent test
- hide-logs.sh ant $OPTS -f platform/api.io test
- hide-logs.sh ant $OPTS -f platform/api.progress test
- hide-logs.sh ant $OPTS -f platform/api.progress.nb test
- hide-logs.sh ant $OPTS -f platform/api.scripting test
- hide-logs.sh ant $OPTS -f platform/api.search test
- hide-logs.sh ant $OPTS -f platform/api.templates test
- hide-logs.sh ant $OPTS -f platform/api.visual test
- hide-logs.sh ant $OPTS -f platform/applemenu test
- hide-logs.sh ant $OPTS -f platform/autoupdate.cli test
- hide-logs.sh ant $OPTS -f platform/autoupdate.services test
- hide-logs.sh ant $OPTS -f platform/autoupdate.ui test
- hide-logs.sh ant $OPTS -f platform/core.execution test
- hide-logs.sh ant $OPTS -f platform/core.io.ui test
- hide-logs.sh ant $OPTS -f platform/core.kit test
- hide-logs.sh ant $OPTS -f platform/core.multiview test
- hide-logs.sh ant $OPTS -f platform/core.netigso test
#- hide-logs.sh ant $OPTS -f platform/core.network test
#- hide-logs.sh ant $OPTS -f platform/core.osgi test
- hide-logs.sh ant $OPTS -f platform/core.output2 test
- hide-logs.sh ant $OPTS -f platform/core.startup test
- hide-logs.sh ant $OPTS -f platform/core.startup.base test
- hide-logs.sh ant $OPTS -f platform/core.ui test
#- hide-logs.sh ant $OPTS -f platform/core.windows test
- hide-logs.sh ant $OPTS -f platform/editor.mimelookup test
- hide-logs.sh ant $OPTS -f platform/editor.mimelookup.impl test
- hide-logs.sh ant $OPTS -f platform/favorites test
- hide-logs.sh ant $OPTS -f platform/javahelp test-unit
- hide-logs.sh ant $OPTS -f platform/keyring.fallback test
- hide-logs.sh ant $OPTS -f platform/keyring.impl test
- hide-logs.sh ant $OPTS -f platform/lib.uihandler test
- hide-logs.sh ant $OPTS -f platform/libs.javafx test
- hide-logs.sh ant $OPTS -f platform/masterfs test
- hide-logs.sh ant $OPTS -f platform/masterfs.linux test
#- hide-logs.sh ant $OPTS -f platform/netbinox test
- hide-logs.sh ant $OPTS -f platform/o.n.bootstrap test
- hide-logs.sh ant $OPTS -f platform/o.n.core test-unit
- hide-logs.sh ant $OPTS -f platform/o.n.swing.outline test
- hide-logs.sh ant $OPTS -f platform/o.n.swing.tabcontrol test

- name: Test platform modules, Batch 2
jdk: openjdk8
env:
- OPTS="-silent -Dcluster.config=platform -Djavac.compilerargs=-nowarn -Dbuild.compiler.deprecation=false -Dtest-unit-sys-prop.ignore.random.failures=true -Dvanilla.javac.exists=true"
before_script:
- ant $OPTS clean
- ant $OPTS build
script:
- hide-logs.sh ant $OPTS -f platform/openide.actions test
- hide-logs.sh ant $OPTS -f platform/openide.awt test
- hide-logs.sh ant $OPTS -f platform/openide.compat test
- hide-logs.sh ant $OPTS -f platform/openide.dialogs test
- hide-logs.sh ant $OPTS -f platform/openide.execution test
- hide-logs.sh ant $OPTS -f platform/openide.execution.compat8 test
- hide-logs.sh ant $OPTS -f platform/openide.explorer test
- hide-logs.sh ant $OPTS -f platform/openide.filesystems test
- hide-logs.sh ant $OPTS -f platform/openide.filesystems.compat8 test
- hide-logs.sh ant $OPTS -f platform/openide.filesystems.nb test
- hide-logs.sh ant $OPTS -f platform/openide.io test
- hide-logs.sh ant $OPTS -f platform/openide.loaders test
- hide-logs.sh ant $OPTS -f platform/openide.modules test
- hide-logs.sh ant $OPTS -f platform/openide.nodes test
- hide-logs.sh ant $OPTS -f platform/openide.options test
- travis_retry hide-logs.sh ant $OPTS -f platform/openide.text test
- hide-logs.sh ant $OPTS -f platform/openide.util test
- hide-logs.sh ant $OPTS -f platform/openide.util.enumerations test
- hide-logs.sh ant $OPTS -f platform/openide.util.lookup test
- hide-logs.sh ant $OPTS -f platform/openide.util.ui test
- hide-logs.sh ant $OPTS -f platform/openide.windows test
- hide-logs.sh ant $OPTS -f platform/options.api test-unit
- hide-logs.sh ant $OPTS -f platform/options.keymap test
- hide-logs.sh ant $OPTS -f platform/print test
- hide-logs.sh ant $OPTS -f platform/progress.ui test
- hide-logs.sh ant $OPTS -f platform/queries test
- hide-logs.sh ant $OPTS -f platform/sampler test
- hide-logs.sh ant $OPTS -f platform/sendopts test
- hide-logs.sh ant $OPTS -f platform/settings test
- hide-logs.sh ant $OPTS -f platform/spi.actions test
- hide-logs.sh ant $OPTS -f platform/spi.quicksearch test
- hide-logs.sh ant $OPTS -f platform/templates test
- hide-logs.sh ant $OPTS -f platform/templatesui test
- hide-logs.sh ant $OPTS -f platform/uihandler test

- env: >
SIGTEST=false
COMPILETEST=false
Expand Down
28 changes: 28 additions & 0 deletions nbbuild/travis/hide-logs.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#!/bin/bash

# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.

"$@" > "/tmp/command_log.txt" 2>&1

RESULT=$?

if [ $RESULT -ne 0 ] ; then
echo "$(</tmp/command_log.txt)"
fi

exit $RESULT

0 comments on commit 46a06f9

Please sign in to comment.