-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
OXDEV-7760 Switch to Universal light workflow
- Loading branch information
1 parent
ebbd1ba
commit c57d054
Showing
8 changed files
with
214 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# This plan should be used before ~/defaults/component.yml. That template uses | ||
# the variables below to fill all the settings for the installation into | ||
# /var/www directly without installing a shop. | ||
|
||
global: | ||
# The organisation part of the composer package name <org>/<name> | ||
org: 'oxid-esales' | ||
# The name part of the composer package, also used in other places | ||
name: 'twig-component' | ||
# The repository organisation/name to check out | ||
repo: 'OXID-eSales/twig-component' | ||
|
||
# These tests are run for all PHP/MySQL combinations specified when calling | ||
# the workflow | ||
runscript: | ||
matrix: | ||
# A string containing a valid json array of scripts to execute | ||
# The scripts follow the pattern "<prefix>:<composer_alias>" for scripts | ||
# defined in composer.json and "<prefix>:~/<shell_script>" for shell | ||
# scripts located in tests/Scripts | ||
# If you want to see the tests output, make sure to generate it in tests/Output | ||
script: '["component:~/unit.sh","component:~/integration.sh"]' | ||
|
||
sonarcloud: | ||
# Remove the next two lines if you want to feed the results of your tests | ||
# to sonarcloud. You need to make sure that your scripts generate an xml | ||
# coverage file in tests/Reports, e.g. by adding | ||
# --coverage-clover=tests/Reports/coverage_phpunit_integration.xml to them. | ||
matrix: | ||
testplan: 'skip' | ||
# If you want to enable sonarcloud, you need to fill out the | ||
# settings for project_key and project_name. You can get them from | ||
# https://sonarcloud.io/organizations/oxid-esales/projects. The defaults for | ||
# organization and parameters should be OK for most cases, so you don't need | ||
# to overwrite them here. | ||
project_key: '???' | ||
project_name: '???' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
/composer.lock | ||
/vendor | ||
.idea |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,4 +23,4 @@ | |
"OxidEsales\\Twig\\Tests\\": "tests" | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?xml version="1.0"?> | ||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
backupGlobals="true" | ||
backupStaticAttributes="false" | ||
colors="false" | ||
convertErrorsToExceptions="true" | ||
convertNoticesToExceptions="true" | ||
convertWarningsToExceptions="true" | ||
forceCoversAnnotation="false" | ||
processIsolation="false" | ||
stopOnError="false" | ||
stopOnFailure="false" | ||
stopOnIncomplete="false" | ||
stopOnSkipped="false" | ||
beStrictAboutTestsThatDoNotTestAnything="false" | ||
verbose="false" | ||
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"> | ||
<coverage includeUncoveredFiles="true" processUncoveredFiles="false"> | ||
<include> | ||
<directory suffix=".php">../src</directory> | ||
</include> | ||
</coverage> | ||
<testsuites> | ||
<testsuite name="UnitTests"> | ||
<directory>Unit/</directory> | ||
<directory>Integration/</directory> | ||
</testsuite> | ||
</testsuites> | ||
</phpunit> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/bash | ||
set -e | ||
vendor/bin/phpunit \ | ||
-c phpunit.xml \ | ||
--coverage-clover=tests/Reports/coverage_phpunit_integration.xml \ | ||
tests/Integration 2>&1 \ | ||
| tee tests/Output/integration_tests.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/bash | ||
set -e | ||
vendor/bin/phpunit \ | ||
-c phpunit.xml \ | ||
--coverage-clover=tests/Reports/coverage_phpunit_unit.xml \ | ||
tests/Unit 2>&1 \ | ||
| tee tests/Output/unit_tests.txt |