Skip to content

Commit 2973c74

Browse files
authored
Create .gitlab-ci.yml
add gitlab CI support
1 parent 6b7000c commit 2973c74

File tree

1 file changed

+94
-0
lines changed

1 file changed

+94
-0
lines changed

.gitlab-ci.yml

+94
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
# The runner VM is expected to already have dependencies installed.
2+
# see https://docs.gitlab.com/ce/ci/yaml/README.html for all available options
3+
4+
5+
#### SETUP ####
6+
workflow:
7+
rules:
8+
- if: '$CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "master"'
9+
- if: '$CI_PIPELINE_SOURCE == "pipeline"'
10+
- if: '$CI_COMMIT_BRANCH == "master"'
11+
- if: '$CI_PIPELINE_SOURCE == "web"'
12+
13+
stages:
14+
- build
15+
- test
16+
- trigger_downstream
17+
18+
.run_build: &run_build
19+
stage: build
20+
script:
21+
- echo "Building"
22+
- autoreconf -if
23+
- "./configure --enable-as-02 --enable-dev-headers --with-xerces --prefix=/opt/cinecert CPPFLAGS=-I/opt/cinecert/include LDFLAGS=-L/opt/cinecert/lib"
24+
- make
25+
- sudo make install
26+
- sudo ldconfig
27+
28+
.run_tests: &run_tests
29+
stage: test
30+
script:
31+
- echo "No Unittests available."
32+
33+
34+
35+
#### BUILD ####
36+
Ubuntu_16.04.6:
37+
tags: ["Ubuntu_16.04.6"]
38+
<<: *run_build
39+
40+
Ubuntu_20.04:
41+
stage: build
42+
tags: ["Ubuntu_20.04", "Python_3.8"]
43+
script:
44+
- echo "Building"
45+
- autoreconf -if
46+
- "./configure --enable-as-02 --enable-dev-headers --with-xerces=/opt/cinecert --prefix=/opt/cinecert CPPFLAGS=-I/opt/cinecert/include LDFLAGS=-L/opt/cinecert/lib"
47+
- make
48+
- sudo make install
49+
- sudo ldconfig
50+
51+
Centos_7.2.1511:
52+
tags: ["Centos_7.2.1511"]
53+
variables:
54+
GIT_STRATEGY: clone
55+
<<: *run_build
56+
57+
Docker:
58+
tags: ["docker"]
59+
image: "registry.eng.cinecert.com/cc_projects/kalai/build_ubuntu_16.04:1.0.0"
60+
<<: *run_build
61+
62+
63+
64+
#### TEST ####
65+
Ubuntu__16_tests:
66+
tags: ["Ubuntu_16.04.6"]
67+
variables:
68+
GIT_STRATEGY: none
69+
<<: *run_tests
70+
71+
Ubuntu_20_tests:
72+
tags: ["Ubuntu_20.04", "Python_3.8"]
73+
variables:
74+
GIT_STRATEGY: none
75+
<<: *run_tests
76+
77+
Centos_7_tests:
78+
tags: ["Centos_7.2.1511"]
79+
variables:
80+
GIT_STRATEGY: none
81+
<<: *run_tests
82+
83+
84+
85+
#### TRIGGER ####
86+
trigger_downstream:
87+
stage: trigger_downstream
88+
trigger:
89+
project: cc_projects/napali
90+
branch: master
91+
92+
#
93+
#
94+
#

0 commit comments

Comments
 (0)