Skip to content
Snippets Groups Projects
Commit f9c93557 authored by Marilena Bandieramonte's avatar Marilena Bandieramonte
Browse files

New gitlab CI, build for ubuntu using ubuntu image with geant4 built-in

parent a993282d
No related branches found
No related tags found
No related merge requests found
Pipeline #1648311 passed with warnings
stages:
- deps-A
- deps-B
- deps-C
- deps-D
- deps-geomodelcore
- deps-CLHEP
- deps-geomodelio
- deps-xerces-c
- deps-Geant4
- build
......@@ -21,15 +22,12 @@ variables:
- export PATH="/usr/local/opt/qt/bin:$PATH" # to make Qt5 discoverable by CMake
.ubuntu-template-job: &ubuntu-job
image: ubuntu:18.04
image: gitlab-registry.cern.ch/mbandier/geant4-ubuntu/base-image:latest
tags:
- docker
before_script:
- apt-get update -qq && apt-get install -y -qq git cmake wget unzip build-essential freeglut3-dev libboost-all-dev qt5-default mercurial libeigen3-dev
.geomodelcore-build-template-job: &geomodelcore-job
stage: deps-A
stage: deps-geomodelcore
variables:
CMAKE_ARGS: ${CMAKE_BASE_ARGS}
script:
......@@ -45,7 +43,7 @@ variables:
- install
.CLHEP-build-template-job: &CLHEP-job
stage: deps-B
stage: deps-CLHEP
variables:
CMAKE_ARGS: ${CMAKE_BASE_ARGS}
script:
......@@ -64,7 +62,7 @@ variables:
- install
.geomodelio-build-template-job: &geomodelio-job
stage: deps-C
stage: deps-geomodelio
variables:
CMAKE_ARGS: ${CMAKE_BASE_ARGS}
script:
......@@ -78,9 +76,28 @@ variables:
artifacts:
paths:
- install
.xerces-c-build-template-job: &xerces-c-job
stage: deps-xerces-c
variables:
CMAKE_ARGS: ${CMAKE_BASE_ARGS}
script:
- pwd; ls
- wget https://archive.apache.org/dist/xerces/c/3/sources/xerces-c-3.2.2.tar.gz
- tar -xf xerces-c-3.2.2.tar.gz
- mkdir xerces-c-build
- cd xerces-c-build
- cmake ${CMAKE_ARGS} ../xerces-c-3.2.2
- make -j32
- make install
artifacts:
paths:
- install
.Geant4-build-template-job: &Geant4-job
stage: deps-D
stage: deps-Geant4
variables:
CMAKE_ARGS: ${CMAKE_BASE_ARGS}
script:
......@@ -91,7 +108,7 @@ variables:
- cd ../
- mkdir Geant4-build
- cd Geant4-build
- cmake ${CMAKE_ARGS} ../geant4
- cmake ${CMAKE_ARGS} -DGEANT4_INSTALL_DATA=ON -DGEANT4_USE_GDML=ON -DGEANT4_BUILD_MULTITHREADED=ON -DXERCESC_ROOT_DIR=../install/xerces-c/ ../geant4
- make -j32
- make install
artifacts:
......@@ -103,13 +120,16 @@ variables:
variables:
CMAKE_ARGS: ${CMAKE_BASE_ARGS}
script:
- echo "PWD; LS"
- pwd; ls
- mkdir build
- cd build
- cmake ${CMAKE_ARGS} ..
- cmake --build . -- -j32
- cmake --build . -- install
- git clone https://gitlab.cern.ch/GeoModelDev/GeoModelG4.git
- mkdir GeoModelG4-build
- cd GeoModelG4-build
- cmake ${CMAKE_ARGS} ../GeoModelG4
- make -j32
- make install
artifacts:
paths:
- install
# ACTUAL JOBS
......@@ -127,10 +147,14 @@ geomodelio-mac:
<<: *geomodelio-job
needs: ["geomodelcore-mac", "CLHEP-mac"]
xerces-c-mac:
<<: *macos-job
<<: *xerces-c-job
Geant4-mac:
<<: *macos-job
<<: *Geant4-job
needs: ["CLHEP-mac"]
needs: ["CLHEP-mac", "xerces-c-mac"]
geomodelg4-mac:
<<: *macos-job
......@@ -143,21 +167,25 @@ geomodelcore-ubuntu:
<<: *ubuntu-job
<<: *geomodelcore-job
CLHEP-ubuntu:
<<: *ubuntu-job
<<: *CLHEP-job
#CLHEP-ubuntu:
# <<: *ubuntu-job
# <<: *CLHEP-job
geomodelio-ubuntu:
<<: *ubuntu-job
<<: *geomodelio-job
needs: ["geomodelcore-ubuntu", "CLHEP-ubuntu"]
needs: ["geomodelcore-ubuntu"]
Geant4-ubuntu:
<<: *ubuntu-job
<<: *Geant4-job
needs: ["CLHEP-ubuntu"]
# xerces-c-ubuntu:
# <<: *ubuntu-job
# <<: *xerces-c-job
# Geant4-ubuntu:
# <<: *ubuntu-job
# <<: *Geant4-job
# needs: ["CLHEP-ubuntu", "xerces-c-ubuntu"]
geomodelg4-ubuntu:
<<: *ubuntu-job
<<: *geomodelg4-job
needs: ["geomodelcore-ubuntu", "geomodelio-ubuntu", "CLHEP-ubuntu", "Geant4-ubuntu"]
needs: ["geomodelcore-ubuntu", "geomodelio-ubuntu"]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment