From 8bdcf146f19aeb1ffe341c8f5652bc86488e284a Mon Sep 17 00:00:00 2001 From: cgeek <cem.moreau@gmail.com> Date: Sat, 14 Jul 2018 16:53:19 +0200 Subject: [PATCH] [enh] ci: separate unit tests from sync tests --- .gitlab-ci.yml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e0b0139ad..753a6e3e8 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -80,8 +80,6 @@ test: # 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 # Code coverage display in GitLab - tar cvzf coverage.tar.gz coverage/ - sed -n 23p coverage/index.html | grep -Po "\d+.\d+" | sed -e "s/\(.*\)/<coverage>\1%<\/coverage>/" @@ -91,6 +89,20 @@ test: - coverage.tar.gz 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 stage: package allow_failure: false -- GitLab