.gitlab-ci.yml 1.0 KB

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