mangadex-api 0.2.3

Unofficial client/wrapper for the MangaDex API
Documentation
image: rust:latest

stages:
  - test
  - deploy

test:
  stage: test
  script:
    - rustc --version
    - cargo --version
    # Check formatting.
    - rustup component add rustfmt
    - cargo fmt -- --check
    # Run a linter to spot unidiomatic code.
    - rustup component add clippy
    - cargo clippy -- -D warnings
    # Run tests.
    - cargo test

pages:
  stage: deploy
  only:
    - tags@gondolyr/mangadex-api
  script:
    - cargo doc --verbose --release --document-private-items --all-features
    # Set up redirect for GitLab pages.
    - echo 'Redirecting to mangadex-api documentation...<link rel="prerender" href="mangadex_api/"/><meta http-equiv="refresh" content="3; url=mangadex_api/"/><link rel=prefetch href=rustdoc.css /><link rel=prefetch href=normalize.css /><link rel=prefetch href=rust-logo.png />' >| target/doc/index.html
    - cp -r target/doc public
  artifacts:
    paths:
      - public
  cache:
    key: pages
    paths:
      - target