From e114253518509e084b4907df510257391a280212 Mon Sep 17 00:00:00 2001 From: cmoineau <cyril.moineau@cea.fr> Date: Mon, 7 Aug 2023 12:01:48 +0000 Subject: [PATCH] [GitLabCI] use venv and add venv to artifact path. --- .gitlab/ci/build.gitlab-ci.yml | 12 +++++++++--- .gitlab/ci/test.gitlab-ci.yml | 2 ++ 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.gitlab/ci/build.gitlab-ci.yml b/.gitlab/ci/build.gitlab-ci.yml index d32de13fe..0c004a9f2 100644 --- a/.gitlab/ci/build.gitlab-ci.yml +++ b/.gitlab/ci/build.gitlab-ci.yml @@ -2,6 +2,8 @@ build:ubuntu_cpp: stage: build tags: - docker + image: n2d2-ci/ubuntu20.04/cpu:latest + script: - mkdir -p build_cpp - mkdir -p install_cpp @@ -18,10 +20,14 @@ build:ubuntu_python: stage: build tags: - docker + image: n2d2-ci/ubuntu20.04/cpu:latest + script: + - python3 -m pip install virtualenv + - virtualenv venv + - source venv/bin/activate - export AIDGE_INSTALL=`pwd`/install - - python3 -m pip install . -v + - python3 -m pip install . artifacts: paths: - - build/ - - install/ + - venv/ \ No newline at end of file diff --git a/.gitlab/ci/test.gitlab-ci.yml b/.gitlab/ci/test.gitlab-ci.yml index baffc5515..b6524252c 100644 --- a/.gitlab/ci/test.gitlab-ci.yml +++ b/.gitlab/ci/test.gitlab-ci.yml @@ -3,6 +3,7 @@ test:ubuntu_cpp: needs: ["build:ubuntu_cpp"] tags: - docker + image: n2d2-ci/ubuntu20.04/cpu:latest script: - cd build_cpp - ctest --output-on-failure @@ -12,6 +13,7 @@ test:ubuntu_python: needs: ["build:ubuntu_python"] tags: - docker + image: n2d2-ci/ubuntu20.04/cpu:latest script: - cd aidge_core - python3 -m pip list -- GitLab