-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
39 lines (36 loc) · 1.63 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
stages:
- prebuild
- mainbuild
build:
stage: mainbuild
tags:
- docker-image-build
script: "echo 'building image'" # unused but this line is required by GitLab CI
build-iwyu:
stage: prebuild
script:
- yum install -y zlib-devel ncurses-devel
- mkdir /home/pseyfert
- IWYUBUILD=$(mktemp -d)
- cd ${IWYUBUILD}
- git clone https://github.com/pseyfert/include-what-you-use.git --depth=1 -b lhcb_clang_8.0
- cd include-what-you-use/
- mkdir build
- cd build/
- PATH=/cvmfs/lhcb.cern.ch/lib/bin/Linux-x86_64:${PATH} /cvmfs/lhcb.cern.ch/lib/bin/Linux-x86_64/cmake -GNinja .. -DCMAKE_PREFIX_PATH=/cvmfs/lhcb.cern.ch/lib/lcg/releases/clang/8.0.0-ed577/x86_64-centos7/ -DCMAKE_INSTALL_PREFIX=/home/pseyfert/.local -DCMAKE_BUILD_TYPE=Release -DCMAKE_RULE_MESSAGES=NO -DCMAKE_EXPORT_COMPILE_COMMANDS=YES -DCMAKE_CXX_COMPILER=/cvmfs/lhcb.cern.ch/lib/bin/x86_64-centos7/lcg-clang++-8.0.0 -DCMAKE_C_COMPILER=/cvmfs/lhcb.cern.ch/lib/bin/x86_64-centos7/lcg-clang-8.0.0
- PATH=/cvmfs/lhcb.cern.ch/lib/bin/Linux-x86_64:${PATH} /cvmfs/lhcb.cern.ch/lib/bin/Linux-x86_64/cmake --build . --target install
- cat /cvmfs/lhcb.cern.ch/lib/bin/x86_64-centos7/lcg-clang++-8.0.0
- mkdir -p /home/pseyfert/.local/lib/clang
- ln -s /cvmfs/lhcb.cern.ch/lib/lcg/releases/clang/8.0.0/x86_64-centos7/lib/clang/8.0.0 /home/pseyfert/.local/lib/clang/8.0.0
- rm -rf ${IWYUBUILD}
- cd /home/pseyfert
- tar -czf iwyu.tar.gz .local/
- cp iwyu.tar.gz ${CI_PROJECT_DIR}/
# cache:
# paths:
# - iwyu.tar.gz
artifacts:
# remove once the full CI works out
expire_in: 2 h
paths:
- iwyu.tar.gz