.gitlab-ci.yml 695 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. image: archlinux/base:latest
  2. before_script:
  3. - pacman -Syu --noconfirm make clang
  4. stages:
  5. - lint
  6. - test
  7. - analysis
  8. test:
  9. stage: test
  10. script:
  11. - pacman -Syu --noconfirm webkit2gtk pkg-config gettext gcc
  12. - make CC=gcc test
  13. - make clean
  14. - make CC=clang test
  15. - make install
  16. format:
  17. stage: lint
  18. script:
  19. - pacman -Syu --noconfirm git
  20. - make format
  21. - git diff --exit-code
  22. scan-build:
  23. stage: analysis
  24. script:
  25. - pacman -Syu --noconfirm webkit2gtk pkg-config gettext gcc
  26. - scan-build --use-cc=gcc -o scan-build-gcc make
  27. - make clean
  28. - scan-build --use-cc=clang -o scan-build-clang make
  29. artifacts:
  30. paths:
  31. - scan-build-gcc/*
  32. - scan-build-clang/*