+++ /dev/null
-version: 2
-
-jobs:
- test:
- # Use same version as debian stretch to use packaged dependencies.
- docker: [{image: "perl:5.24-threaded"}]
- working_directory: /tmp/pgbadger
- steps:
- - run:
- name: Install debian packages
- command: >
- apt update -y &&
- apt install -y --no-install-recommends git libjson-xs-perl openssh-client
- - checkout
- - run:
- name: Executing tests
- environment:
- # Inject APT packaged dependencies.
- PERL5LIB: /usr/lib/x86_64-linux-gnu/perl5/5.24:/usr/share/perl5
- command: prove --verbose
-
- doc:
- docker: [{image: "perl:5.26"}]
- working_directory: /tmp/pgbadger
- steps:
- - checkout
- - run:
- name: Check README is up to date with pod
- command: |
- perl Makefile.PL
- touch --no-create pgbadger
- make README
- git diff --exit-code README doc/pgBadger.pod
-
-workflows:
- version: 2
- pipeline:
- jobs:
- - test
- - doc
`doc/pgBadger.pod`. Update `README` and `doc/pgBadger.pod` with `make README`
and commit changes when contributing.
-A job in CI ensure all versionned documentations are consistent.