Skip to content

Commit

Permalink
[Minor] Try fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
fatalbanana committed Sep 15, 2023
1 parent 2f603c1 commit a5fada3
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ steps:
-DENABLE_LIBUNWIND=ON
-DENABLE_HYPERSCAN=ON
-GNinja
$CI_WORKSPACE
$DRONE_WORKSPACE
- ncpu=$(getconf _NPROCESSORS_ONLN)
- ninja -j $ncpu install
- ninja -j $ncpu rspamd-test
Expand Down Expand Up @@ -72,7 +72,7 @@ steps:
-DENABLE_FULL_DEBUG=ON
-DENABLE_HYPERSCAN=ON
-DSANITIZE=address
$CI_WORKSPACE
$DRONE_WORKSPACE
- ncpu=$(getconf _NPROCESSORS_ONLN)
- make -j $ncpu install
- make -j $ncpu rspamd-test
Expand Down Expand Up @@ -185,12 +185,12 @@ steps:
# use umask to create world-writable files so nobody can write to *.gcda files created by root
- umask 0000
- set +e
- RSPAMD_INSTALLROOT=/rspamd/install robot --removekeywords wuks --exclude isbroken $CI_WORKSPACE/test/functional/cases; EXIT_CODE=$?
- RSPAMD_INSTALLROOT=/rspamd/install robot --removekeywords wuks --exclude isbroken $DRONE_WORKSPACE/test/functional/cases; EXIT_CODE=$?
- set -e
# upload test results to nginx frontent using WebDAV PUT
- >
if [ -n "$HTTP_PUT_AUTH" ]; then
$CI_WORKSPACE/test/tools/http_put.py log.html report.html https://$DRONE_SYSTEM_HOSTNAME/testlogs/$DRONE_REPO/$DRONE_BUILD_NUMBER/;
$DRONE_WORKSPACE/test/tools/http_put.py log.html report.html https://$DRONE_SYSTEM_HOSTNAME/testlogs/$DRONE_REPO/$DRONE_BUILD_NUMBER/;
fi
# core_pattern=/var/tmp/%u.%e.core so one or two cores can be saved for each binary
- core_files=$(find /var/tmp/ -name '*.core')
Expand All @@ -216,15 +216,15 @@ steps:
commands:
- cd /rspamd/build
# extract coverage data for C code from .gcda files and save it in a format suitable for coveralls.io
- $CI_WORKSPACE/test/tools/gcov_coveralls.py --exclude test --prefix /rspamd/build --prefix $CI_WORKSPACE --out coverage.c.json
- $DRONE_WORKSPACE/test/tools/gcov_coveralls.py --exclude test --prefix /rspamd/build --prefix $DRONE_WORKSPACE --out coverage.c.json
# luacov-coveralls reads luacov.stats.out generated by functional tests
# (see collect_lua_coverage() in test/functional/lib/rspamd.py)
# and writes json report for coveralls.io
- luacov-coveralls -o coverage.functional.lua.json --dryrun
# * merge coverage for C and Lua code
# * remove prefixes from absolute paths (in luacov-coveralls files), filter test, contrib, e. t.c
# * upload report to coveralls.io
- $CI_WORKSPACE/test/tools/merge_coveralls.py --root $CI_WORKSPACE --input coverage.c.json unit_test_lua.json coverage.functional.lua.json --token=$COVERALLS_REPO_TOKEN
- $DRONE_WORKSPACE/test/tools/merge_coveralls.py --root $DRONE_WORKSPACE --input coverage.c.json unit_test_lua.json coverage.functional.lua.json --token=$COVERALLS_REPO_TOKEN
environment:
COVERALLS_REPO_TOKEN: { from_secret: coveralls_repo_token }
when:
Expand Down Expand Up @@ -283,6 +283,6 @@ trigger:

---
kind: signature
hmac: f872f03e58aa40d039377909ef889f867b77d82cdd8b87b398096e3a1e954a24
hmac: 13670c504d29a1249b3a06c171016f14377e3c74101935bc23f6c542036562df

...

0 comments on commit a5fada3

Please sign in to comment.