diff options
| author | jvoisin | 2017-10-05 16:55:41 +0200 |
|---|---|---|
| committer | GitHub | 2017-10-05 16:55:41 +0200 |
| commit | 0527dd3ddec3ad75ecb296ecdb55fbe4c2ad4418 (patch) | |
| tree | 0725db978191d139555e2e3b58cb1d32b86f1f60 /.travis.yml | |
| parent | b769b7d6b9409b3f0d1dd8410fecbeae2e2ddd0c (diff) | |
Use clang on travis-ci (#23)
Diffstat (limited to '.travis.yml')
| -rw-r--r-- | .travis.yml | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/.travis.yml b/.travis.yml index 833ed97..b9b7c87 100644 --- a/.travis.yml +++ b/.travis.yml | |||
| @@ -9,6 +9,10 @@ php: | |||
| 9 | before_install: | 9 | before_install: |
| 10 | - pip install --user cpp-coveralls | 10 | - pip install --user cpp-coveralls |
| 11 | 11 | ||
| 12 | env: | ||
| 13 | - CC=clang | ||
| 14 | - CC=gcc | ||
| 15 | |||
| 12 | script: | 16 | script: |
| 13 | - cd src | 17 | - cd src |
| 14 | - phpize | 18 | - phpize |
| @@ -17,12 +21,14 @@ script: | |||
| 17 | - TEST_PHP_ARGS='-q' REPORT_EXIT_STATUS=1 make test | 21 | - TEST_PHP_ARGS='-q' REPORT_EXIT_STATUS=1 make test |
| 18 | 22 | ||
| 19 | after_success: | 23 | after_success: |
| 20 | - git clone https://github.com/linux-test-project/lcov.git --depth 1 | 24 | - 'if [ ${CC} = "gcc" ]; then |
| 21 | - rm -rf ./lcov/examples/ ./lcov/test/ | 25 | git clone https://github.com/linux-test-project/lcov.git --depth 1 ; |
| 22 | - ./lcov/bin/lcov -c -o ./COV.info --rc lcov_branch_coverage=1 --base-directory . --directory . | 26 | rm -rf ./lcov/examples/ ./lcov/test/ ; |
| 23 | - ./lcov/bin/lcov --remove ./COV.info '/usr/*' --remove ./COV.info '*tweetnacl.c' -o ./COV.info --rc lcov_branch_coverage=1 | 27 | ./lcov/bin/lcov -c -o ./COV.info --rc lcov_branch_coverage=1 --base-directory . --directory . ; |
| 24 | - ./lcov/bin/genhtml -o ./COV.html ./COV.info --branch-coverage | 28 | ./lcov/bin/lcov --remove ./COV.info "/usr/*" --remove ./COV.info "*tweetnacl.c" -o ./COV.info --rc lcov_branch_coverage=1 ; |
| 25 | - coveralls --exclude 'tweetnacl.c' | 29 | ./lcov/bin/genhtml -o ./COV.html ./COV.info --branch-coverage ; |
| 30 | coveralls --exclude "tweetnacl.c" ; | ||
| 31 | fi' | ||
| 26 | - cd .. | 32 | - cd .. |
| 27 | - make joomla | 33 | - make joomla |
| 28 | 34 | ||
