shithub: sl

ref: 64ed7785525654984f16cc4aadd25bd5e3a3331e
dir: /.build.yml/

View raw version
image: alpine/edge
secrets:
  - 05bf4496-881e-4741-b17f-5cc8640334bf
  - a64c56b5-9ef2-4d45-a3ee-049a7ce3c88e
packages:
  - gcovr
  - gzip
  - lcov
  - meson
  - rsync
  - samurai
sources:
  - https://git.sr.ht/~ft/sl
tasks:
  - setup: |
      cd sl
      meson setup build . -Dbuildtype=release -Db_coverage=true
  - build: |
      cd sl
      ninja -C build test
  - coverage: |
      cd sl
      ninja -C build coverage-html
  - coverage-upload: |
      test $GIT_REF = refs/heads/main || exit 0
      set +x
      rsync -Pavq sl/build/meson-logs/coveragereport -e "ssh -p 8886 -i .ssh/05bf4496-881e-4741-b17f-5cc8640334bf" secretsauce@ftrv.se:incoming/sl-coverage 2>/dev/null