fpc/.gitlab-ci.yml
FPK 335b6acc4d * build and test must be one job
(cherry picked from commit 21914bf43b)
2021-08-26 23:14:10 +02:00

21 lines
813 B
YAML

# 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
image: registry.gitlab.com/freepascal.org/fpc/source:buster_fpcbuild
stages: # List of stages for jobs, and their order of execution
- buildandtest
build-and-test-job: # This job runs in the build stage, which runs first.
stage: buildandtest
script:
- make -j 4 all OS_TARGET=linux CPU_TARGET=x86_64 OPT="-gl" FPMAKEOPT="-T 4"
- 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