From f53aedbd2c196d1d8d85b619f3d7ae5aab8b4765 Mon Sep 17 00:00:00 2001 From: Maxim Vochten Date: Tue, 16 Apr 2024 15:15:57 +0000 Subject: [PATCH] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6d828bd..9b2d1e3 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -7,20 +7,23 @@ image: python:3.9 cache: paths: - .cache/pip - - venv/ before_script: - python -V # Print out python version for debugging - pip install virtualenv - virtualenv venv - - source venv/bin/activate install_invariants_py: script: + - source venv/bin/activate - pip install . + artifacts: + paths: + - venv/ install_fatrop: script: + - source venv/bin/activate - git clone https://github.com/meco-group/fatrop.git --recursive - cd fatrop - apt-get update && apt-get install -y cmake @@ -29,15 +32,27 @@ install_fatrop: - pip install --upgrade pip setuptools - pip install . - cd ../.. + artifacts: + paths: + - venv/ install_rockit: script: + - source venv/bin/activate - git clone https://gitlab.kuleuven.be/meco-software/rockit.git - git clone https://gitlab.kuleuven.be/u0110259/rockit_fatrop_plugin.git ./rockit/rockit/external/fatrop - cd rockit - pip install . - cd .. + artifacts: + paths: + - venv/ run_examples: script: - - python run_all_scripts.py \ No newline at end of file + - source venv/bin/activate + - python run_all_scripts.py + dependencies: + - install_invariants_py + - install_fatrop + - install_rockit \ No newline at end of file