This repository has been archived by the owner on Dec 18, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
113 lines (103 loc) · 3.73 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
stages:
- build
variables:
GIT_DEPTH: "15"
KW_PROJECT_NAME: module_mpi
ErrorActionPreference: STOP
.job_template: &build_job_docker_modules
stage: build
tags:
- docker
- modules
image: $DOCKER_REGISTRY/ospray/docker-images:centos7-mod
script:
- scripts/build_gitlab/linux.sh
.job_template: &build_job_docker
stage: build
tags:
- docker
image: $DOCKER_REGISTRY/ospray/docker-images:arch
script:
- scripts/build_gitlab/linux.sh
### BUILD JOBS ###
# WILL Note: Temporarily using older openvkl version while waiting for OSPRay to update
# to the new iterator API
build-centos7-intel:
<<: *build_job_docker_modules
script:
- module load cmake
- module load intel
- export CC=icc
- export CXX=icpc
- if [[ "$CI_COMMIT_REF_NAME" == "master" ]]; then
export BUILD_OSPRAY_VERSION=master;
export BUILD_OPENVKL_VERSION=master;
export BUILD_RKCOMMON_VERSION=master;
else
export BUILD_OSPRAY_VERSION=devel;
export BUILD_OPENVKL_VERSION=devel;
export BUILD_RKCOMMON_VERSION=devel;
fi
- scripts/build_gitlab/linux.sh -DBUILD_OSPRAY_VERSION=$BUILD_OSPRAY_VERSION -DBUILD_OPENVKL_VERSION=$BUILD_OPENVKL_VERSION -DBUILD_RKCOMMON_VERSION=$BUILD_RKCOMMON_VERSION
build-centos7-openmpi:
<<: *build_job_docker_modules
script:
- export MODULEPATH=$MODULEPATH:/NAS/spack/share/spack/modules/linux-centos7-x86_64
- module load cmake
- module load openmpi
- if [[ "$CI_COMMIT_REF_NAME" == "master" ]]; then
export BUILD_OSPRAY_VERSION=master;
export BUILD_OPENVKL_VERSION=master;
export BUILD_RKCOMMON_VERSION=master;
else
export BUILD_OSPRAY_VERSION=devel;
export BUILD_OPENVKL_VERSION=devel;
export BUILD_RKCOMMON_VERSION=devel;
fi
- scripts/build_gitlab/linux.sh -DBUILD_OSPRAY_VERSION=$BUILD_OSPRAY_VERSION -DBUILD_OPENVKL_VERSION=$BUILD_OPENVKL_VERSION -DBUILD_RKCOMMON_VERSION=$BUILD_RKCOMMON_VERSION
build-centos8-mpich:
<<: *build_job_docker
image: $DOCKER_REGISTRY/ospray/docker-images:centos8
script:
- yum install -y mpich-devel mpich
- if [[ "$CI_COMMIT_REF_NAME" == "master" ]]; then
export BUILD_OSPRAY_VERSION=master;
export BUILD_OPENVKL_VERSION=master;
export BUILD_RKCOMMON_VERSION=master;
else
export BUILD_OSPRAY_VERSION=devel;
export BUILD_OPENVKL_VERSION=devel;
export BUILD_RKCOMMON_VERSION=devel;
fi
- export PATH=$PATH:/usr/lib64/mpich/bin/
- scripts/build_gitlab/linux.sh -DBUILD_OSPRAY_VERSION=$BUILD_OSPRAY_VERSION -DBUILD_OPENVKL_VERSION=$BUILD_OPENVKL_VERSION -DBUILD_RKCOMMON_VERSION=$BUILD_RKCOMMON_VERSION
build-centos8-openmpi:
<<: *build_job_docker
image: $DOCKER_REGISTRY/ospray/docker-images:centos8
script:
- yum install -y openmpi-devel openmpi
- if [[ "$CI_COMMIT_REF_NAME" == "master" ]]; then
export BUILD_OSPRAY_VERSION=master;
export BUILD_OPENVKL_VERSION=master;
export BUILD_RKCOMMON_VERSION=master;
else
export BUILD_OSPRAY_VERSION=devel;
export BUILD_OPENVKL_VERSION=devel;
export BUILD_RKCOMMON_VERSION=devel;
fi
- export PATH=$PATH:/usr/lib64/openmpi/bin/
- scripts/build_gitlab/linux.sh -DBUILD_OSPRAY_VERSION=$BUILD_OSPRAY_VERSION -DBUILD_OPENVKL_VERSION=$BUILD_OPENVKL_VERSION -DBUILD_RKCOMMON_VERSION=$BUILD_RKCOMMON_VERSION
build-scan-kw:
stage: build
image: $DOCKER_REGISTRY/ospray/docker-images:centos7
script:
- yum install -y mpich-devel mpich
- export PATH=$PATH:/usr/lib64/mpich/bin/
- scripts/build_gitlab/build-scan-kw.sh
- test -s $CI_PROJECT_DIR/kw_build_number
tags:
- docker
artifacts:
paths:
- $CI_PROJECT_DIR/kw_build_number
expire_in: 3 day