-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy path.gitlab-ci.yml
51 lines (47 loc) · 951 Bytes
/
.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
workflow:
rules:
- if: $CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_REF_NAME == "master"
when: always
- if: $CI_MERGE_REQUEST_ID
when: always
- when: never
stages:
- build
- test
.latest:
image: "kitware/paraview-for-ci:latest"
build_linux:
extends:
- .latest
stage: build
script:
- mkdir -p build
- cd build
- cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=ON ..
- cmake --build . --parallel 2
tags:
- docker
- linux-x86_64
- paraview
artifacts:
expire_in: 1h
when: always
paths:
- build/
interruptible: true
test_linux:
extends:
- .latest
stage: test
script:
- cd build
- xvfb-run ctest -j 2 --output-on-failure --no-tests=error || xvfb-run ctest -j 1 --no-tests=error --rerun-failed -VV
tags:
- docker
- linux-x86_64
- paraview
interruptible: true
dependencies:
- build_linux
needs:
- build_linux