From 60b06840cc4258b91b9568900b1754afdbc64c26 Mon Sep 17 00:00:00 2001 From: Peio Rigaux Date: Fri, 16 Nov 2018 11:23:41 +0100 Subject: [PATCH] gci : add comments and trying to move the before script directive into the test stage --- .gitlab-ci.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a39235b..162c64c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,17 +1,16 @@ image: gitlab.linphone.org:4567/bc/public/linphone-sdk/bc-dev-debian:9 -before_script: - - sudo apt-get install wget unzip stages: - build - test build: stage: build - tags: [ "docker" ] + tags: [ "docker" ] #needed for the stage to be runned script: - mkdir -p build-bcg729 - cd build-bcg729 - cmake .. -DENABLE_TESTS=YES - make + #uploading the artifacts for the next stage artifacts: paths: - build-bcg729/test/* @@ -20,6 +19,11 @@ build: test: stage: test tags: [ "docker" ] + + #ugly... It's better to use a proper docker image for this istead of + #installing each time the container is run + before_script: + - sudo apt-get install wget unzip script: - cd build-bcg729/test - ./testCampaignAll