This is an automated email from the ASF dual-hosted git repository. hectorespert pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/netbeans.git
The following commit(s) were added to refs/heads/master by this push: new 0cc79f4 [NETBEANS-4487] Enabled PHP tests in GitHub Actions new 526e0ae Merge pull request #2221 from KacerCZ/netbeans-4487-enable-php-debugger-in-travis 0cc79f4 is described below commit 0cc79f451f5e9d8cf8c218f728de13d41375f25b Author: Tomas Prochazka <ka...@razdva.cz> AuthorDate: Mon Jun 29 14:52:59 2020 +0200 [NETBEANS-4487] Enabled PHP tests in GitHub Actions https://issues.apache.org/jira/browse/NETBEANS-4487 Enabled PHP tests on Linux in GitHub Actions. Added note why tests can't be enabled in Travis. --- .github/workflows/main.yml | 178 +++++++++++++++++++++++++++++++++++++-------- .travis.yml | 38 ---------- 2 files changed, 149 insertions(+), 67 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index abab7a7..9fc1c2d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -45,36 +45,38 @@ jobs: - name: Test run: ant -f platform/core.network test - - name: Test PHP modules + - name: Test PHP cluster + env: + OPTS: -Dtest-unit-sys-prop.ignore.random.failures=true run: | - ant -f php/hudson.php test - ant -f php/languages.neon test - ant -f php/php.api.annotation test - ant -f php/php.api.documentation test - ant -f php/php.api.executable test - ant -f php/php.api.framework test - ant -f php/php.api.phpmodule test - ant -f php/php.api.testing test - ant -f php/php.apigen test - ant -f php/php.atoum test - ant -f php/php.code.analysis test - ant -f php/php.codeception test - ant -f php/php.composer test - ant -f php/php.dbgp test - ant -f php/php.doctrine2 test - ant -f php/php.editor test - ant -f php/php.latte test - ant -f php/php.nette.tester test - ant -f php/php.phpunit test - ant -f php/php.project test - ant -f php/php.refactoring test - ant -f php/php.smarty test - ant -f php/php.symfony test - ant -f php/php.symfony2 test - ant -f php/php.twig test - ant -f php/php.zend test - ant -f php/php.zend2 test - ant -f php/spellchecker.bindings.php test + ant $OPTS -f php/hudson.php test + ant $OPTS -f php/languages.neon test + ant $OPTS -f php/php.api.annotation test + ant $OPTS -f php/php.api.documentation test + ant $OPTS -f php/php.api.executable test + ant $OPTS -f php/php.api.framework test + ant $OPTS -f php/php.api.phpmodule test + ant $OPTS -f php/php.api.testing test + ant $OPTS -f php/php.apigen test + ant $OPTS -f php/php.atoum test + ant $OPTS -f php/php.code.analysis test + ant $OPTS -f php/php.codeception test + ant $OPTS -f php/php.composer test + ant $OPTS -f php/php.dbgp test + ant $OPTS -f php/php.doctrine2 test + ant $OPTS -f php/php.editor test + ant $OPTS -f php/php.latte test + ant $OPTS -f php/php.nette.tester test + ant $OPTS -f php/php.phpunit test + ant $OPTS -f php/php.project test + ant $OPTS -f php/php.refactoring test + ant $OPTS -f php/php.smarty test + ant $OPTS -f php/php.symfony test + ant $OPTS -f php/php.symfony2 test + ant $OPTS -f php/php.twig test + ant $OPTS -f php/php.zend test + ant $OPTS -f php/php.zend2 test + ant $OPTS -f php/spellchecker.bindings.php test linux: name: Check Build System @@ -98,6 +100,124 @@ jobs: - name: Test Netbeans Build System run: ant -Dcluster.config=basic localtest + + linux-php: + name: Linux build of PHP cluster + runs-on: ubuntu-18.04 + env: + DISPLAY: ":99.0" + OPTS: -Dcluster.config=php -Dtest-unit-sys-prop.ignore.random.failures=true + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Caching dependencies + uses: actions/cache@v2 + with: + path: ~/.hgexternalcache + key: ${{ runner.os }}-${{ hashFiles('**/external/binaries-list') }} + restore-keys: ${{ runner.os }}- + + - name: Setup PHP + uses: shivammathur/setup-php@2.3.1 + with: + php-version: '7.4' + tools: pecl + extensions: xdebug + ini-values: xdebug.remote_enable=on + + - name: Launch Xvfb + run: Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 & + + - name: Clean + run: ant $OPTS clean + + - name: Build + run: ant $OPTS build + + - name: Test Hudson + run: ant $OPTS -f php/hudson.php test + + - name: Test Neon + run: ant $OPTS -f php/languages.neon test + + - name: Test API Annotation + run: ant $OPTS -f php/php.api.annotation test + + - name: Test API Documentation + run: ant $OPTS -f php/php.api.documentation test + + - name: Test API Executable + run: ant $OPTS -f php/php.api.executable test + + - name: Test API Framework + run: ant $OPTS -f php/php.api.framework test + + - name: Test API PHP Module + run: ant $OPTS -f php/php.api.phpmodule test + + - name: Test API Testing + run: ant $OPTS -f php/php.api.testing test + + - name: Test ApiGen + run: ant -f php/php.apigen test + + - name: Test Atoum + run: ant -f php/php.atoum test + + - name: Test Code Analysis + run: ant -f php/php.code.analysis test + + - name: Test Codeception + run: ant -f php/php.codeception test + + - name: Test Composer + run: ant -f php/php.composer test + + - name: Test PHP Debugger + run: ant -f php/php.dbgp test + + - name: Test Doctrine2 + run: ant -f php/php.doctrine2 test + + - name: Test PHP Editor + run: ant -f php/php.editor test + + - name: Test Latte + run: ant -f php/php.latte test + + - name: Test Nette Tester + run: ant -f php/php.nette.tester test + + - name: Test PHPUnit + run: ant -f php/php.phpunit test + + - name: Test PHP Project + run: ant -f php/php.project test + + - name: Test Refactoring + run: ant -f php/php.refactoring test + + - name: Test Smarty + run: ant -f php/php.smarty test + + - name: Test Symfony + run: ant -f php/php.symfony test + + - name: Test Symfony 2 + run: ant -f php/php.symfony2 test + + - name: Test Twig + run: ant -f php/php.twig test + + - name: Test Zend + run: ant -f php/php.zend test + + - name: Test Zend 2 + run: ant -f php/php.zend2 test + + - name: Test Spellchecker Bindings + run: ant -f php/spellchecker.bindings.php test macos: name: MacOS build diff --git a/.travis.yml b/.travis.yml index 12dc8ed..ed87d75 100644 --- a/.travis.yml +++ b/.travis.yml @@ -656,44 +656,6 @@ matrix: #- ant $TEST_OPTS -f groovy/groovy.kit test - ant $TEST_OPTS -f groovy/groovy.support test - - name: Test php modules - jdk: openjdk8 - env: - - OPTS="-quiet -Dcluster.config=php -Djavac.compilerargs=-nowarn -Dbuild.compiler.deprecation=false -Dtest-unit-sys-prop.ignore.random.failures=true" - before_script: - - ant $OPTS clean - - ant $OPTS build - script: - - ant $OPTS -f php/hudson.php test - - ant $OPTS -f php/languages.neon test - - ant $OPTS -f php/php.api.annotation test - - ant $OPTS -f php/php.api.documentation test - - ant $OPTS -f php/php.api.executable test - - ant $OPTS -f php/php.api.framework test - - ant $OPTS -f php/php.api.phpmodule test - - ant $OPTS -f php/php.api.testing test - - ant $OPTS -f php/php.apigen test - - ant $OPTS -f php/php.atoum test - - ant $OPTS -f php/php.code.analysis test - - ant $OPTS -f php/php.codeception test - - ant $OPTS -f php/php.composer test - #- ant $OPTS -f php/php.dbgp test - - ant $OPTS -f php/php.doctrine2 test - # PHP Editor tests can't be run on Travis because they run 90 minutes. - #- ant $OPTS -f php/php.editor test - - ant $OPTS -f php/php.latte test - - ant $OPTS -f php/php.nette.tester test - - ant $OPTS -f php/php.phpunit test - - ant $OPTS -f php/php.project test - - ant $OPTS -f php/php.refactoring test - - ant $OPTS -f php/php.smarty test - - ant $OPTS -f php/php.symfony test - - ant $OPTS -f php/php.symfony2 test - - ant $OPTS -f php/php.twig test - - ant $OPTS -f php/php.zend test - - ant $OPTS -f php/php.zend2 test - - ant $OPTS -f php/spellchecker.bindings.php test - - name: Build the Visual Studio Code extension for Java jdk: openjdk8 before_install: --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists