.gitlab-ci.yml 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. stages:
  2. - build
  3. - advanced_build
  4. build:
  5. image: debian:latest
  6. stage: build
  7. variables:
  8. SCONSOPTS: 'qt=yes xgps=yes'
  9. script:
  10. - apt update && apt -y install build-essential debhelper po-debconf python3-all-dev python3-all-dbg python-all-dev python-all-dbg xsltproc docbook-xsl docbook-xml asciidoc libncurses-dev libusb-1.0-0-dev libdbus-1-dev libglib2.0-dev makedev libbluetooth-dev libqt4-dev lsb-release bc dpkg-dev scons chrpath dh-buildinfo pps-tools dh-systemd python-serial
  11. - .ci-build/build.sh
  12. debian-unstable:
  13. image: debian:unstable
  14. stage: advanced_build
  15. variables:
  16. SCONSOPTS: 'qt=yes xgps=yes'
  17. script:
  18. - apt update && apt -y install build-essential debhelper po-debconf python3-all-dev python3-all-dbg python-all-dev python-all-dbg xsltproc docbook-xsl docbook-xml asciidoc libncurses-dev libusb-1.0-0-dev libdbus-1-dev libglib2.0-dev makedev libbluetooth-dev libqt4-dev lsb-release bc dpkg-dev scons chrpath dh-buildinfo pps-tools dh-systemd python-serial
  19. - .ci-build/build.sh
  20. debian-unstable-clang:
  21. image: debian:unstable
  22. stage: advanced_build
  23. variables:
  24. SCONSOPTS: 'qt=yes xgps=yes'
  25. CC: 'clang'
  26. CXX: 'clang++'
  27. script:
  28. - apt update && apt -y clang install build-essential debhelper po-debconf python3-all-dev python3-all-dbg python-all-dev python-all-dbg xsltproc docbook-xsl docbook-xml asciidoc libncurses-dev libusb-1.0-0-dev libdbus-1-dev libglib2.0-dev makedev libbluetooth-dev libqt4-dev lsb-release bc dpkg-dev scons chrpath dh-buildinfo pps-tools dh-systemd python-serial
  29. - .ci-build/build.sh
  30. pages:
  31. image: alpine:latest
  32. stage: build
  33. script:
  34. - apk update && apk add python xmlto asciidoc scons rsync
  35. - mkdir .pages; WEBSITE=.public scons website=.pages website; mv .public public
  36. - find public -type f -regex '.*\.\(htm\|html\|txt\|text\|js\|css\)$' -exec gzip -f -k {} \;
  37. - ls -lR public
  38. artifacts:
  39. paths:
  40. - public
  41. only:
  42. - master