Separate jobs for base and all testing.
This commit is contained in:
parent
620bc529c1
commit
0836bcca55
@ -1,11 +1,17 @@
|
|||||||
image: ubuntu:xenial
|
image: ubuntu:xenial
|
||||||
stages:
|
stages:
|
||||||
- test
|
- test
|
||||||
job_test:
|
job_test_base:
|
||||||
stage: test
|
stage: test
|
||||||
script:
|
script:
|
||||||
- apt-get update && apt-get install -y apt-utils locales git
|
- apt-get update && apt-get install -y apt-utils locales git
|
||||||
- git clone https://gitlab.com/flectra-hq/build-tools.git ${CI_PROJECT_DIR}/build-tools && export PATH=${CI_PROJECT_DIR}/build-tools/gitlab-ci:${PATH}
|
- git clone https://gitlab.com/flectra-hq/build-tools.git ${CI_PROJECT_DIR}/build-tools && export PATH=${CI_PROJECT_DIR}/build-tools/gitlab-ci:${PATH}
|
||||||
- gitlab_ci_install_flectra
|
- gitlab_ci_install_flectra
|
||||||
- su - flectra -c "export PATH=${CI_PROJECT_DIR}/build-tools/gitlab-ci:${PATH} && gitlab_test_flectra --build=base"
|
- su - flectra -c "export PATH=${CI_PROJECT_DIR}/build-tools/gitlab-ci:${PATH} && gitlab_test_flectra --build=base"
|
||||||
|
job_test_all:
|
||||||
|
stage: test
|
||||||
|
script:
|
||||||
|
- apt-get update && apt-get install -y apt-utils locales git
|
||||||
|
- git clone https://gitlab.com/flectra-hq/build-tools.git ${CI_PROJECT_DIR}/build-tools && export PATH=${CI_PROJECT_DIR}/build-tools/gitlab-ci:${PATH}
|
||||||
|
- gitlab_ci_install_flectra
|
||||||
- su - flectra -c "export PATH=${CI_PROJECT_DIR}/build-tools/gitlab-ci:${PATH} && gitlab_test_flectra --build=all"
|
- su - flectra -c "export PATH=${CI_PROJECT_DIR}/build-tools/gitlab-ci:${PATH} && gitlab_test_flectra --build=all"
|
Loading…
Reference in New Issue
Block a user