diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 282692fe4c7ab14ff316e519cdc8efe3e22600c8..f77543bd0e6fea7ede726bd208f702740f25e97e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,12 +1,22 @@ -stages: - - build - - test +image: whit2333/dd4hep-base:latest -test: - stage: test - script: echo "Running tests" +before_script: + - pwd + - ls -lrth /usr/local/bin -build: - stage: build - script: echo "Building the app" +# Try to compile our sample hello world app +compile: + image: whit2333/dd4hep-base:latest + script: + - ./bin/do_build +# - . /usr/local/bin/thisroot.sh +# - . /usr/local/bin/thisdd4hep.sh +# - . /usr/local/bin/geant4.sh +# - mkdir install +# - mkdir build +# - cd build +# - cmake .. -DCMAKE_INSTALL_PREFIX=../install +# - make -j4 +job2: + script: "ls -lrth" diff --git a/bin/do_build b/bin/do_build new file mode 100755 index 0000000000000000000000000000000000000000..2714e36a3f1836216baf1a61ff90646c902ab41a --- /dev/null +++ b/bin/do_build @@ -0,0 +1,10 @@ +#!/bin/bash +ps +source /usr/local/bin/thisroot.sh +source /usr/local/bin/thisdd4hep.sh +source /usr/local/bin/geant4.sh +mkdir install +mkdir build +cd build +cmake .. -DCMAKE_INSTALL_PREFIX=../install +make -j4