Skip to content
Snippets Groups Projects
Commit 8bdcf146 authored by Cédric Moreau's avatar Cédric Moreau
Browse files

[enh] ci: separate unit tests from sync tests

parent a3f7abd4
No related branches found
No related tags found
No related merge requests found
...@@ -80,8 +80,6 @@ test: ...@@ -80,8 +80,6 @@ test:
# Clean the dump directory before testing # Clean the dump directory before testing
- rm -rf /tmp/duniter_ci_dump/ - rm -rf /tmp/duniter_ci_dump/
- mkdir -p /tmp/duniter_ci_dump/ - mkdir -p /tmp/duniter_ci_dump/
- bash .gitlab/test/check_g1_sync.sh
- bash .gitlab/test/check_gt_sync.sh
# Code coverage display in GitLab # Code coverage display in GitLab
- tar cvzf coverage.tar.gz coverage/ - tar cvzf coverage.tar.gz coverage/
- sed -n 23p coverage/index.html | grep -Po "\d+.\d+" | sed -e "s/\(.*\)/<coverage>\1%<\/coverage>/" - sed -n 23p coverage/index.html | grep -Po "\d+.\d+" | sed -e "s/\(.*\)/<coverage>\1%<\/coverage>/"
...@@ -91,6 +89,20 @@ test: ...@@ -91,6 +89,20 @@ test:
- coverage.tar.gz - coverage.tar.gz
expire_in: 4h expire_in: 4h
test_sync:
<<: *nvm_env
stage: test
cache:
untracked: true
paths:
- node_modules/
script:
# Clean the dump directory before testing
- rm -rf /tmp/duniter_ci_dump/
- mkdir -p /tmp/duniter_ci_dump/
- bash .gitlab/test/check_g1_sync.sh
- bash .gitlab/test/check_gt_sync.sh
.build_releases: &build_releases .build_releases: &build_releases
stage: package stage: package
allow_failure: false allow_failure: false
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment