Add gitlab pages task with docs.

This commit is contained in:
James Harton 2020-01-07 09:53:58 +13:00
parent 8f63a7c639
commit 04f6036553
2 changed files with 15 additions and 0 deletions

1
.gitignore vendored
View file

@ -22,3 +22,4 @@ erl_crash.dump
# Ignore package tarball (built via "mix hex.build").
wafer-*.tar
/public/

View file

@ -16,17 +16,31 @@ before_script:
- mix deps.get --only test
test:
stage: test
script:
- mix test
credo:
stage: test
script:
- mix credo
audit:
stage: test
script:
- mix hex.audit
format:
stage: test
script:
- mix format --check-formatted
pages:
stage: deploy
script:
- mix docs -o public
artifacts:
paths:
- public
only:
- master