.gitlab-ci.yml 1.0 KB

123456789101112131415161718192021222324252627282930313233343536
  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:
  7. - compilercycle
  8. - buildandtest
  9. compiler-fullcycle-job:
  10. stage: compilercycle
  11. script:
  12. - cd compiler
  13. - make fullcycle -j 4
  14. build-and-test-job:
  15. stage: buildandtest
  16. script:
  17. - make -j 4 all OS_TARGET=linux CPU_TARGET=x86_64 FPMAKEOPT="-T 4"
  18. - FPC_SRC=$(pwd)
  19. - FPC_COMPILER=$FPC_SRC/compiler/ppcx64
  20. - cd tests
  21. - make clean TEST_FPC=$FPC_COMPILER TEST_DELTEMP=1 -j 4
  22. - make full TEST_FPC=$FPC_COMPILER TEST_DELTEMP=1 -j 4
  23. - cd utils
  24. - make fpts2junit
  25. - cd $FPC_SRC
  26. - tests/utils/fpts2junit $FPC_SRC/tests/output/x86_64-linux/ testresult.xml
  27. artifacts:
  28. when: always
  29. paths:
  30. - testresult.xml
  31. reports:
  32. junit: testresult.xml