From ed4f5a1d3ff3f9a4d8de08d5775983497bf26f69 Mon Sep 17 00:00:00 2001 From: Malavan Sotheeswaran Date: Fri, 6 Aug 2021 02:20:18 +0000 Subject: [PATCH] Use artifacts to speed up pipeline Former-commit-id: 37ad7b3567aaefa7785eb50e1370db4734605e4c --- .gitlab-ci.yml | 47 +++++++++++++++++++++++------------------------ 1 file changed, 23 insertions(+), 24 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index bfe59aec1..8742a73b2 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -15,53 +15,54 @@ build: - git submodule init && git submodule update - make distclean - make -j + artifacts: + paths: + - src/ runtest: extends: .standard-pipeline + dependencies: + - build tags: - docker stage: test script: - - git submodule init && git submodule update - - make distclean - - make -j - ./runtest --config server-threads 3 runtest-cluster: extends: .standard-pipeline + dependencies: + - build tags: - docker stage: test script: - - git submodule init && git submodule update - - make distclean - - make -j - ./runtest-cluster runtest-moduleapi: extends: .standard-pipeline + dependencies: + - build tags: - docker stage: test script: - - git submodule init && git submodule update - - make distclean - - make -j - ./runtest-moduleapi runtest-sentinel: extends: .standard-pipeline + dependencies: + - build tags: - docker stage: test script: - - git submodule init && git submodule update - - make distclean - - make -j - ./runtest-sentinel node-redis-test: extends: .standard-pipeline + dependencies: + - build rules: - when: never tags: @@ -69,10 +70,8 @@ node-redis-test: - ipv6 stage: test script: - - git submodule init && git submodule update - - make distclean - - make -j - - make install + - cp -pf src/keydb-server /usr/local/bin + - cp -pf src/keydb-cli /usr/local/bin - git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.eqalpha.com/keydb-dev/node-redis.git - cd node-redis - npm install @@ -80,29 +79,29 @@ node-redis-test: jedis-test: extends: .standard-pipeline + dependencies: + - build tags: - docker - ipv4 stage: test script: - - git submodule init && git submodule update - - make distclean - - make -j - - make install + - cp -pf src/keydb-server /usr/local/bin + - cp -pf src/keydb-cli /usr/local/bin - git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.eqalpha.com/keydb-dev/jedis.git - cd jedis - make test redis-rs-test: extends: .standard-pipeline + dependencies: + - build tags: - docker stage: test script: - - git submodule init && git submodule update - - make distclean - - make -j - - make install + - cp -pf src/keydb-server /usr/local/bin + - cp -pf src/keydb-cli /usr/local/bin - git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.eqalpha.com/keydb-dev/redis-rs.git - cd redis-rs - make test