diff options
| author | jvoisin | 2017-09-25 17:42:07 +0200 |
|---|---|---|
| committer | jvoisin | 2017-09-26 11:17:07 +0200 |
| commit | aa43131510ffc4531abc5f66ab3c60d69ea5ff2f (patch) | |
| tree | 5812ccd59b25448f1e98327de6e040885d461ae9 | |
| parent | 5bb28dfa613df0d642afaa70086ab1201fbb8cd5 (diff) | |
Run the joomla testsuite as a simple benchmark
The joomla testsuite is now run on travis automatically,
with and without snuffleupagus, to give us a rough overview
of the performance impact of snuffleupagus on realâ„¢ code.
| -rw-r--r-- | .travis.yml | 5 | ||||
| -rw-r--r-- | Makefile | 11 |
2 files changed, 11 insertions, 5 deletions
diff --git a/.travis.yml b/.travis.yml index cdc6d7b..833ed97 100644 --- a/.travis.yml +++ b/.travis.yml | |||
| @@ -16,7 +16,6 @@ script: | |||
| 16 | - make -j 2 | 16 | - make -j 2 |
| 17 | - TEST_PHP_ARGS='-q' REPORT_EXIT_STATUS=1 make test | 17 | - TEST_PHP_ARGS='-q' REPORT_EXIT_STATUS=1 make test |
| 18 | 18 | ||
| 19 | |||
| 20 | after_success: | 19 | after_success: |
| 21 | - git clone https://github.com/linux-test-project/lcov.git --depth 1 | 20 | - git clone https://github.com/linux-test-project/lcov.git --depth 1 |
| 22 | - rm -rf ./lcov/examples/ ./lcov/test/ | 21 | - rm -rf ./lcov/examples/ ./lcov/test/ |
| @@ -24,7 +23,9 @@ after_success: | |||
| 24 | - ./lcov/bin/lcov --remove ./COV.info '/usr/*' --remove ./COV.info '*tweetnacl.c' -o ./COV.info --rc lcov_branch_coverage=1 | 23 | - ./lcov/bin/lcov --remove ./COV.info '/usr/*' --remove ./COV.info '*tweetnacl.c' -o ./COV.info --rc lcov_branch_coverage=1 |
| 25 | - ./lcov/bin/genhtml -o ./COV.html ./COV.info --branch-coverage | 24 | - ./lcov/bin/genhtml -o ./COV.html ./COV.info --branch-coverage |
| 26 | - coveralls --exclude 'tweetnacl.c' | 25 | - coveralls --exclude 'tweetnacl.c' |
| 26 | - cd .. | ||
| 27 | - make joomla | ||
| 27 | 28 | ||
| 28 | after_failure: | 29 | after_failure: |
| 29 | - grep -r . ./tests/*.out | 30 | - grep -r . ./tests/*.out |
| 30 | - grep -r . ./tests/*.diff \ No newline at end of file | 31 | - grep -r . ./tests/*.diff |
| @@ -21,9 +21,14 @@ coverage: | |||
| 21 | tests: joomla | 21 | tests: joomla |
| 22 | 22 | ||
| 23 | joomla: | 23 | joomla: |
| 24 | if [ -nd "joomla-cms" ]; then git clone --depth 1 git@github.com:joomla/joomla-cms.git; fi | 24 | if [ ! -d "joomla-cms" ]; then \ |
| 25 | cd joomla-cms; composer install | 25 | git clone --depth 1 https://github.com/joomla/joomla-cms.git >/dev/null; \ |
| 26 | cd joomla-cms; libraries/vendor/phpunit/phpunit/phpunit -d extension=./src/modules/snuffleupagus.so | 26 | fi |
| 27 | cd joomla-cms; composer install >/dev/null 2>/dev/null | ||
| 28 | echo "\nWith snuffleupagus:" | ||
| 29 | cd joomla-cms; time libraries/vendor/phpunit/phpunit/phpunit -d "extension=./src/modules/snuffleupagus.so" -d "sp.configuration_file=config/default.ini" --no-coverage >/dev/null | ||
| 30 | echo "\nWithout snuffleupagus:" | ||
| 31 | cd joomla-cms; time libraries/vendor/phpunit/phpunit/phpunit --no-coverage >/dev/null | ||
| 27 | 32 | ||
| 28 | packages: debian | 33 | packages: debian |
| 29 | 34 | ||
