-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.gitlab-ci.yml
65 lines (60 loc) · 2.06 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
stages: # List of stages for jobs, and their order of execution
- style
- build
workflow:
rules:
# skip running branch pipelines if a MR is open for the branch
- if: $CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS && $CI_PIPELINE_SOURCE == "push"
when: never
- if: $CI_PIPELINE_SOURCE == 'merge_request_event'
- if: $CI_PIPELINE_SOURCE == 'web'
- if: $CI_COMMIT_TAG
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
check_style: # This job runs in the build stage, which runs first.
stage: style
rules:
# always run the style check on any push event
- if: $CI_PIPELINE_SOURCE == "push"
- when: on_success
script:
- echo "Checking tabs..."
- .github/workflows/style/check_tabs.sh
- echo "Checking EOL whitespaces..."
- .github/workflows/style/check_trailing_whitespaces.sh
build-gcc-serial: # This job runs in the build stage, which runs first.
stage: build
rules:
# always run the style check on any push event
- if: $CI_PIPELINE_SOURCE == "push"
- when: on_success
script:
- echo "Configuring..."
- autoreconf -i && CC=gcc CXX=g++ MPICC=gcc MPICXX=g++ ./configure --enable-serial
- echo "Running make..."
- make -j4
build-gcc-mpich: # This job runs in the build stage, which runs first.
stage: build
rules:
# always run the style check on any push event
- if: $CI_PIPELINE_SOURCE == "push"
- when: on_success
script:
- echo "Installing MPICH..."
- apt-get update && apt-get install -y mpich libmpich-dev
- echo "Configuring..."
- autoreconf -i && ./configure
- echo "Running make..."
- make -j4
build-gcc-openmpi: # This job runs in the build stage, which runs first.
stage: build
rules:
# always run the style check on any push event
- if: $CI_PIPELINE_SOURCE == "push"
- when: on_success
script:
- echo "Installing OpenMPI..."
- apt-get update && apt-get install -y libopenmpi-dev openmpi-bin
- echo "Configuring..."
- autoreconf -i && ./configure
- echo "Running make..."
- make -j4