diff options
| author | jvoisin | 2017-09-25 10:14:26 +0200 |
|---|---|---|
| committer | jvoisin | 2017-09-25 10:35:02 +0200 |
| commit | 879e6e1fe83df1df91ec87b6b7469eefcbf66f20 (patch) | |
| tree | 022b9dc760a99fa3982e3cd82661d432c0451ef8 | |
| parent | 090ea65510baad564dd7f3ff481e7c4417ccf2b4 (diff) | |
Add support for coveralls
| -rw-r--r-- | .travis.yml | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml index 07cbc81..4eba7a2 100644 --- a/.travis.yml +++ b/.travis.yml | |||
| @@ -3,7 +3,6 @@ language: php | |||
| 3 | php: | 3 | php: |
| 4 | - '7.0' | 4 | - '7.0' |
| 5 | - '7.1' | 5 | - '7.1' |
| 6 | |||
| 7 | - '7.2' | 6 | - '7.2' |
| 8 | - nightly | 7 | - nightly |
| 9 | 8 | ||
| @@ -13,6 +12,9 @@ addons: | |||
| 13 | - gcc | 12 | - gcc |
| 14 | - lcov | 13 | - lcov |
| 15 | 14 | ||
| 15 | before_install: | ||
| 16 | - pip install --user cpp-coveralls | ||
| 17 | |||
| 16 | script: | 18 | script: |
| 17 | - cd src | 19 | - cd src |
| 18 | - phpize | 20 | - phpize |
| @@ -22,7 +24,9 @@ script: | |||
| 22 | 24 | ||
| 23 | after_success: | 25 | after_success: |
| 24 | - git clone https://github.com/linux-test-project/lcov.git --depth 1 | 26 | - git clone https://github.com/linux-test-project/lcov.git --depth 1 |
| 27 | - rm -rf ./lcov/examples/ ./lcov/test/ | ||
| 25 | - ./lcov/bin/lcov -c -o ./COV.info --rc lcov_branch_coverage=1 --base-directory . --directory . | 28 | - ./lcov/bin/lcov -c -o ./COV.info --rc lcov_branch_coverage=1 --base-directory . --directory . |
| 26 | - ./lcov/bin/lcov --remove ./COV.info '/usr/*' --remove ./COV.info '*tweetnacl.c' -o ./COV.info --rc lcov_branch_coverage=1 | 29 | - ./lcov/bin/lcov --remove ./COV.info '/usr/*' --remove ./COV.info '*tweetnacl.c' -o ./COV.info --rc lcov_branch_coverage=1 |
| 27 | - ./lcov/bin/genhtml -o ./COV.html ./COV.info --branch-coverage | 30 | - ./lcov/bin/genhtml -o ./COV.html ./COV.info --branch-coverage |
| 28 | - bash <(curl -s https://codecov.io/bash) | 31 | - bash <(curl -s https://codecov.io/bash) |
| 32 | - coveralls --exclude 'tweetnacl.c' | ||
