gitlab-ci: require new commits to be signed off to pass the test
[barrelfish] / .gitlab-ci.yml
1 ##########################################################################
2 # Copyright (c) 2018 ETH Zurich.
3 # All rights reserved.
4 #
5 # This file is distributed under the terms in the attached LICENSE file.
6 # If you do not find this file, copies can be found by writing to:
7 # ETH Zurich D-INFK, CAB F.78, Universitaetstr. 6, CH-8092 Zurich,
8 # Attn: Systems Group.
9 ##########################################################################
10
11 stages:
12   - commithooks
13   # - hake
14   # - build
15   # - tests
16
17
18 ##############################################################################
19
20 commithook-signedoff:
21   stage: commithooks
22   image: achreto/barrelfish-ci
23   artifacts :
24     paths:
25       - commits_not_signed.txt
26   script:
27     - "! git log  --since='2018-01-01' --invert-grep --grep='Signed-off-by' | tee 'commits_not_signed.txt' | grep 'commit' -A 5"
28     
29
30
31 # x86:hake:
32 #   stage: hake
33 #   image: achreto/barrelfish-ci
34 #   artifacts:
35 #     paths:
36 #       - build-x86
37 #     when: on_success
38 #   script:
39 #     - "mkdir build-x86; (cd build-x86 && ../hake/hake.sh -s ../ -a x86_64)"
40     
41
42 # x86:build:
43 #   stage: build
44 #   dependencies:
45 #     - x86:hake
46 #   image: achreto/barrelfish-ci
47 #   script:
48 #     - "(cd build-x86 &&  make X86_64_Basic)"
49
50 # x86:memtest:
51 #   stage: tests
52 #   dependencies:
53 #     - x86:build
54 #   image: achreto/barrelfish-ci
55 #   script:
56 #     - "mkdir -p results"
57 #     - "(./tools/harness/scalebench.py --xml --debug -B build-x86 -m qemu1 -t memtest . results )"    
58
59 # x86:memtest4:
60 #   stage: tests
61 #   dependencies:
62 #     - x86:build
63 #   image: achreto/barrelfish-ci
64 #   script:
65 #     - "mkdir -p results"
66 #     - "(./tools/harness/scalebench.py --xml --debug -B build-x86 -m qemu4 -t memtest . results )"    
67
68
69 # ##############################################################################
70
71
72 # armv7:hake:
73 #   stage: hake
74 #   image: achreto/barrelfish-ci
75 #   artifacts:
76 #     paths:
77 #       - build-armv7
78 #     when: on_success
79 #   script:
80 #     - "mkdir build-armv7; (cd build-armv7 && ../hake/hake.sh -s ../ -a armv7)"
81
82
83 # armv7:build:
84 #   stage: build
85 #   dependencies:
86 #     - armv7:hake
87 #   image: achreto/barrelfish-ci
88 #   script:
89 #     - "(cd build-armv7 &&  make PandaboardES)"
90
91 # armv7:memtest:
92 #   stage: tests
93 #   dependencies:
94 #     - armv7:build
95 #   image: achreto/barrelfish-ci
96 #   script:
97 #     - "mkdir -p results"
98 #     - "(./tools/harness/scalebench.py --xml --debug -B build-armv7 -m qemu_armv7 -t memtest . results )"
99
100
101 # ##############################################################################
102
103
104 # armv8:hake:
105 #   stage: hake
106 #   image: achreto/barrelfish-ci
107 #   artifacts:
108 #     paths:
109 #       - build-armv8
110 #     when: on_success
111 #   script:
112 #     - "mkdir build-armv8; (cd build-armv8 && ../hake/hake.sh -s ../ -a armv8)"#
113 # #
114
115 # armv8:build:
116 #   stage: build
117 #   dependencies:
118 #     - armv8:hake
119 #   image: achreto/barrelfish-ci
120 #   script:
121 #     - "(cd build-armv8 &&  make ThunderX)"    
122
123 # armv8:memtest:
124 #   stage: tests
125 #   dependencies:
126 #     - armv8:build
127 #   image: achreto/barrelfish-ci
128 #   script:
129 #     - "mkdir -p results"
130 #     - "(./tools/harness/scalebench.py --xml --debug -B build-armv8 -m qemu_armv8_1 -t memtest . results )"