Use artifacts to speed up pipeline

Former-commit-id: 37ad7b3567aaefa7785eb50e1370db4734605e4c
This commit is contained in:
Malavan Sotheeswaran 2021-08-06 02:20:18 +00:00
parent 9541358630
commit 374ec0437b

View File

@ -15,53 +15,54 @@ build:
- git submodule init && git submodule update - git submodule init && git submodule update
- make distclean - make distclean
- make -j - make -j
artifacts:
paths:
- src/
runtest: runtest:
extends: .standard-pipeline extends: .standard-pipeline
dependencies:
- build
tags: tags:
- docker - docker
stage: test stage: test
script: script:
- git submodule init && git submodule update
- make distclean
- make -j
- ./runtest --config server-threads 3 - ./runtest --config server-threads 3
runtest-cluster: runtest-cluster:
extends: .standard-pipeline extends: .standard-pipeline
dependencies:
- build
tags: tags:
- docker - docker
stage: test stage: test
script: script:
- git submodule init && git submodule update
- make distclean
- make -j
- ./runtest-cluster - ./runtest-cluster
runtest-moduleapi: runtest-moduleapi:
extends: .standard-pipeline extends: .standard-pipeline
dependencies:
- build
tags: tags:
- docker - docker
stage: test stage: test
script: script:
- git submodule init && git submodule update
- make distclean
- make -j
- ./runtest-moduleapi - ./runtest-moduleapi
runtest-sentinel: runtest-sentinel:
extends: .standard-pipeline extends: .standard-pipeline
dependencies:
- build
tags: tags:
- docker - docker
stage: test stage: test
script: script:
- git submodule init && git submodule update
- make distclean
- make -j
- ./runtest-sentinel - ./runtest-sentinel
node-redis-test: node-redis-test:
extends: .standard-pipeline extends: .standard-pipeline
dependencies:
- build
rules: rules:
- when: never - when: never
tags: tags:
@ -69,10 +70,8 @@ node-redis-test:
- ipv6 - ipv6
stage: test stage: test
script: script:
- git submodule init && git submodule update - cp -pf src/keydb-server /usr/local/bin
- make distclean - cp -pf src/keydb-cli /usr/local/bin
- make -j
- make install
- git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.eqalpha.com/keydb-dev/node-redis.git - git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.eqalpha.com/keydb-dev/node-redis.git
- cd node-redis - cd node-redis
- npm install - npm install
@ -80,29 +79,29 @@ node-redis-test:
jedis-test: jedis-test:
extends: .standard-pipeline extends: .standard-pipeline
dependencies:
- build
tags: tags:
- docker - docker
- ipv4 - ipv4
stage: test stage: test
script: script:
- git submodule init && git submodule update - cp -pf src/keydb-server /usr/local/bin
- make distclean - cp -pf src/keydb-cli /usr/local/bin
- make -j
- make install
- git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.eqalpha.com/keydb-dev/jedis.git - git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.eqalpha.com/keydb-dev/jedis.git
- cd jedis - cd jedis
- make test - make test
redis-rs-test: redis-rs-test:
extends: .standard-pipeline extends: .standard-pipeline
dependencies:
- build
tags: tags:
- docker - docker
stage: test stage: test
script: script:
- git submodule init && git submodule update - cp -pf src/keydb-server /usr/local/bin
- make distclean - cp -pf src/keydb-cli /usr/local/bin
- make -j
- make install
- git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.eqalpha.com/keydb-dev/redis-rs.git - git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.eqalpha.com/keydb-dev/redis-rs.git
- cd redis-rs - cd redis-rs
- make test - make test