From f25a1d09b21a7db5976f951039b1a71ddcccf120 Mon Sep 17 00:00:00 2001 From: malavan Date: Wed, 14 Jul 2021 22:15:44 +0000 Subject: [PATCH] add endurance test Former-commit-id: 3ebd20e66fd6cf858f8d7de7de223d18c387a2a9 --- .gitlab-ci.yml | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 485559469..cc67d754a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,4 +1,10 @@ build: + rules: + - if: '$COVERAGE' + when: never + - if: '$ENDURANCE' + when: never + - when: always tags: - docker stage: build @@ -8,6 +14,12 @@ build: - make -j make-test: + rules: + - if: '$COVERAGE' + when: never + - if: '$ENDURANCE' + when: never + - when: always tags: - docker stage: test @@ -18,6 +30,12 @@ make-test: - make test -j node-redis-test: + rules: + - if: '$COVERAGE' + when: never + - if: '$ENDURANCE' + when: never + - when: always tags: - docker - ipv6 @@ -33,6 +51,12 @@ node-redis-test: - npm run test jedis-test: + rules: + - if: '$COVERAGE' + when: never + - if: '$ENDURANCE' + when: never + - when: always tags: - docker - ipv4 @@ -47,6 +71,12 @@ jedis-test: - make test redis-rs-test: + rules: + - if: '$COVERAGE' + when: never + - if: '$ENDURANCE' + when: never + - when: always tags: - docker stage: test @@ -59,6 +89,18 @@ redis-rs-test: - cd redis-rs - make test +endurance-test: + rules: + - if: '$ENDURANCE' + tags: + - docker + stage: test + script: + - git submodule init && git submodule update + - make distclean + - make -j + - ./runtest --loop --stop + coverage-test: rules: - if: '$COVERAGE'