summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.travis.yml5
-rw-r--r--Makefile11
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
20after_success: 19after_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
28after_failure: 29after_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
diff --git a/Makefile b/Makefile
index 117fe80..29cd02a 100644
--- a/Makefile
+++ b/Makefile
@@ -21,9 +21,14 @@ coverage:
21tests: joomla 21tests: joomla
22 22
23joomla: 23joomla:
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
28packages: debian 33packages: debian
29 34