From ff1b59e68d7bbdfdc7ccce6283ebb0a83fbd196c Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 25 Apr 2016 17:29:55 +0300 Subject: In .gitlab-ci.yml split deploy into test and deploy. --- .gitlab-ci.yml | 30 ++++++++++++++++++++---------- 1 file changed, 20 insertions(+), 10 deletions(-) (limited to '.gitlab-ci.yml') diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 28f873f4..8f836cfa 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,4 +1,5 @@ stages: +- test - deploy - fail - ok @@ -7,16 +8,33 @@ image: debian:stable before_script: - uname -a +testxml: + stage: test + script: + - apt-get update + - apt-get -y -qq install git-core zip gcc zlib1g-dev ca-certificates libxml2-utils python python-pyvorbis python-ogg python-pil + - cd .. + - rm -rf tools + - git clone https://gitlab.com/evol/evol-tools.git tools + - pwd + - ./tools/gitlab-ci/clientdata/testxml.sh + - pwd + - ls clientdata/shared + artifacts: + paths: + - shared + - public + pages: stage: deploy script: - apt-get update - - apt-get -y -qq install git-core zip gcc zlib1g-dev ca-certificates libxml2-utils python python-pyvorbis python-ogg python-pil + - apt-get -y -qq install git-core zip gcc zlib1g-dev ca-certificates libxml2-utils python - cd .. - rm -rf tools - git clone https://gitlab.com/evol/evol-tools.git tools - pwd - - ./tools/gitlab-ci/clientdata.sh + - ./tools/gitlab-ci/clientdata/deploy.sh - pwd - ls clientdata/shared artifacts: @@ -35,10 +53,6 @@ ok_job: artifacts: paths: - shared - dependencies: - - pages - only: - - master fail_job: stage: fail @@ -49,7 +63,3 @@ fail_job: # artifacts: # paths: # - shared - dependencies: - - pages - only: - - master -- cgit v1.2.3-60-g2f50