.gitlab-ci.yml 968 B

12345678910111213141516171819202122232425
  1. # This .gitlab.ci.yml is based on:
  2. # https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Getting-Started.gitlab-ci.yml
  3. # the FPC specific parts are partly from:
  4. # https://gitlab.com/alb42/testconversion2/-/blob/main/.gitlab-ci.yml
  5. image: registry.gitlab.com/freepascal.org/fpc/source:buster_fpcbuild
  6. stages: # List of stages for jobs, and their order of execution
  7. - build
  8. - test
  9. build-job: # This job runs in the build stage, which runs first.
  10. stage: build
  11. script:
  12. - make -j 4 all OS_TARGET=linux CPU_TARGET=x86_64 OPT="-gl" FPMAKEOPT="-T 4"
  13. regression-test-job: # This job runs in the test stage.
  14. stage: test # It only starts when the job in the build stage completes successfully.
  15. script:
  16. - FPC_SRC=$(pwd)
  17. - FPC_COMPILER=$FPC_SRC/compiler/ppcx64
  18. - cd tests
  19. - make clean TEST_FPC=$FPC_COMPILER TEST_DELTEMP=1 -j 4
  20. - make full TEST_FPC=$FPC_COMPILER TEST_DELTEMP=1 -j 4