2
0

.gitlab-ci.yml 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. .linux_runners:
  6. image: registry.gitlab.com/freepascal.org/fpc/source/debian-buster-x86_64
  7. tags:
  8. - saas-linux-medium-amd64
  9. stages:
  10. - compilercycle
  11. - buildandtest
  12. compiler-fullcycle-job:
  13. stage: compilercycle
  14. extends:
  15. - .linux_runners
  16. script:
  17. - cd compiler
  18. - make fullcycle -j 4 "OPT=-Oodfa"
  19. build-and-test-job-linux:
  20. stage: buildandtest
  21. extends:
  22. - .linux_runners
  23. script:
  24. - make -j 4 all OS_TARGET=linux CPU_TARGET=x86_64 FPMAKEOPT="-T 4" "OPT=-Oodfa"
  25. - FPC_SRC=$(pwd)
  26. - FPC_COMPILER=$FPC_SRC/compiler/ppcx64
  27. - cd tests
  28. - make clean TEST_FPC=$FPC_COMPILER TEST_DELTEMP=1 -j 4
  29. - make full TEST_FPC=$FPC_COMPILER TEST_DELTEMP=1 -j 4
  30. - cd utils
  31. - make fpts2junit
  32. - cd $FPC_SRC
  33. - tests/utils/fpts2junit $FPC_SRC/tests/output/x86_64-linux/ testresult.xml
  34. artifacts:
  35. when: always
  36. paths:
  37. - testresult.xml
  38. reports:
  39. junit: testresult.xml