From 895f5f2de42df7b0486bfa55b5b32b3cbcd0262e Mon Sep 17 00:00:00 2001 From: Christoph Knote Date: Fri, 4 Mar 2022 10:51:12 +0100 Subject: [PATCH] Updated CI scripts --- .gitignore | 2 ++ .gitlab-ci.yml | 58 +++++++++----------------------------------------- 2 files changed, 12 insertions(+), 48 deletions(-) diff --git a/.gitignore b/.gitignore index 0a3af78..9c434ad 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,8 @@ bin/ share build +src/kpp +boxmox*.tar.gz doc/boxmox_README.pdf diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3174bc3..f474ff6 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,53 +1,15 @@ -create_patch: - image: ubuntu:rolling - script: - - bash create_BOXMOX_patch.bash - tags: - - ehs_vm - -boxmox_latest: +build: image: ubuntu:rolling + before_script: + - DEBIAN_FRONTEND=noninteractive apt-get -qq update + - DEBIAN_FRONTEND=noninteractive apt-get -qq install wget patch make gcc gfortran flex bison texlive script: - - cp -r boxmox boxmox_latest - - bash prep_BOXMOX_src_directory.bash boxmox_latest latest - - tar cvzf boxmox_latest.tar.gz boxmox_latest - tags: - - ehs_vm + - aclocal + - autoconf + - automake -a -c + - ./configure + - make + - make dist-gzip artifacts: paths: - boxmox_latest.tar.gz - -.compile: - script: - - bash install_BOXMOX.bash COMPILE_ONLY - - export KPP_HOME=$(pwd)/boxmox - - export PATH=$KPP_HOME/bin:$KPP_HOME/boxmox/bin:$PATH - - cd boxmox/models - - prepare_BOXMOX_mechanism MOZART_4 - - new_BOXMOX_experiment_from_example chamber_experiment - - for mechpath in *def; - do - mech=${mechpath/.def/}; - echo ${mech}; - if [ "${mech}" != "CB05TUCl_EPA" ] && [ "${mech}" != "MCMv3_3" ]; - then - prepare_BOXMOX_mechanism -f ${mech}; - new_BOXMOX_experiment ${mech} chamber_experiment_${mech}; - cp chamber_experiment/*csv chamber_experiment_${mech}/; - cd chamber_experiment_${mech}; - ./${mech}.exe; - cd ..; - fi; - done - tags: - - ehs_vm - -compile_ubuntu_latest: - image: ubuntu:rolling - extends: .compile - before_script: - - DEBIAN_FRONTEND=noninteractive apt-get -qq update - - DEBIAN_FRONTEND=noninteractive apt-get -qq install wget patch make gcc gfortran flex bison texlive - tags: - - ehs_vm - -- GitLab