-
Notifications
You must be signed in to change notification settings - Fork 3
/
.gitlab-ci.yml
43 lines (39 loc) · 1.15 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
# This .gitlab.ci.yml is based on:
# https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Getting-Started.gitlab-ci.yml
# the FPC specific parts are partly from:
# https://gitlab.com/alb42/testconversion2/-/blob/main/.gitlab-ci.yml
.linux_runners:
image: registry.gitlab.com/freepascal.org/fpc/source/debian-buster-x86_64
tags:
- linux
stages:
- compilercycle
- buildandtest
compiler-fullcycle-job:
stage: compilercycle
extends:
- .linux_runners
script:
- cd compiler
- make fullcycle -j 4 "OPT=-Oodfa"
build-and-test-job-linux:
stage: buildandtest
extends:
- .linux_runners
script:
- make -j 4 all OS_TARGET=linux CPU_TARGET=x86_64 FPMAKEOPT="-T 4" "OPT=-Oodfa"
- FPC_SRC=$(pwd)
- FPC_COMPILER=$FPC_SRC/compiler/ppcx64
- cd tests
- make clean TEST_FPC=$FPC_COMPILER TEST_DELTEMP=1 -j 4
- make full TEST_FPC=$FPC_COMPILER TEST_DELTEMP=1 -j 4
- cd utils
- make fpts2junit
- cd $FPC_SRC
- tests/utils/fpts2junit $FPC_SRC/tests/output/x86_64-linux/ testresult.xml
artifacts:
when: always
paths:
- testresult.xml
reports:
junit: testresult.xml