ciboulette 0.1.0

Library to parse JSON:API requests and build responses
Documentation
default:
  image: registry.gitlab.com/basiliq/dockerfiles

variables:
  RUSTFLAGS: -C link-dead-code

stages:
  - test

build_and_test_rust:
  stage: test
  before_script:
    - mkdir -p .git/hooks
    - export NAME=ciboulette
  script:
    - cargo fmt -- --check
    - cargo clippy -- -D warnings
    - cargo build --all-targets
    - cargo test
  after_script:
    - for file in $(find target/debug/deps -executable \( -name "$(basename ciboulette)-*" -o -name "mod-*" \) );
      do
        echo "Running $file";
        mkdir -p "target/cov/$(basename $file)";
        kcov "target/cov/$(basename $file)" --exclude-pattern="/.cargo,/usr/lib,$PWD/src/tests,$PWD/src/body/tests,$PWD/src/query/tests,$PWD/src/path/tests,$PWD/tests,$PWD/ciboulette_test_helper" $file;
      done
    - bash <(curl -s https://codecov.io/bash) -t $CODECOV_TOKEN -s target/cov