Skip to content
Snippets Groups Projects
Commit 101a5951 authored by Whitney Armstrong's avatar Whitney Armstrong
Browse files

CI build improvement.

I couldn't figure out how to source scripts in the gitlab ci yaml file
so I had to create a "do_build" script which does everything.

	modified:   .gitlab-ci.yml
	new file:   bin/do_build
parent 1baa17bf
Branches
Tags
1 merge request!22Ci improvement
image: whit2333/dd4hep-base:latest
stages:
- build
- test
before_script:
- pwd
- ls -lrth /usr/local/bin
test:
stage: test
script: echo "Running tests"
build:
stage: build
# Try to compile our sample hello world app
compile:
image: whit2333/dd4hep-base:latest
script:
- mkdir install
- mkdir build
- cd build
- cmake .. -DCMAKE_INSTALL_PREFIX=../install
- make -j4 install
- ./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"
#!/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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment