diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3db33c0..1d4bf0e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,143 +1,59 @@ stages: - test - - build - publish variables: CARGO_HOME: $CI_PROJECT_DIR/cargo - RUST_LOG: info,gotham=debug,gotham_restful=trace - -check-example: - stage: test - image: rust:slim - before_script: - - cargo -V - script: - - cargo check --manifest-path example/Cargo.toml - cache: - key: cargo-stable-example - paths: - - cargo/ - - target/ test-default: stage: test - image: rust:1.49-slim + image: msrd0/rust:alpine before_script: - cargo -V script: - - cargo test --manifest-path openapi_type/Cargo.toml -- --skip trybuild - - cargo test + - cargo test --workspace --lib + - cargo test --workspace --doc cache: - key: cargo-1-49-default paths: - cargo/ - target/ -test-full: +test-all: stage: test - image: rust:1.49-slim + image: msrd0/rust:alpine-tarpaulin before_script: - - apt update -y - - apt install -y --no-install-recommends libpq-dev - cargo -V script: - - cargo test --manifest-path openapi_type/Cargo.toml --all-features -- --skip trybuild - - cargo test --no-default-features --features full - cache: - key: cargo-1-49-all - paths: - - cargo/ - - target/ - -test-tarpaulin: - stage: test - image: rust:slim - before_script: - - apt update -y - - apt install -y --no-install-recommends libpq-dev libssl-dev pkgconf - - cargo -V - - cargo install cargo-tarpaulin - script: - - cargo tarpaulin --target-dir target/tarpaulin --no-default-features --features full --exclude-files 'cargo/*' --exclude-files 'derive/*' --exclude-files 'example/*' --exclude-files 'target/*' --ignore-panics --ignore-tests --out Html --out Xml -v + - cargo test --workspace --all-features --doc + - cargo tarpaulin --all --all-features --exclude-files 'cargo/*' --exclude-files 'gotham_restful_derive/*' --exclude-files 'example/*' --ignore-panics --ignore-tests --out Html -v artifacts: paths: - tarpaulin-report.html - reports: - cobertura: cobertura.xml cache: - key: cargo-stable-all - paths: - - cargo/ - - target/ - -test-trybuild-ui: - stage: test - image: rust:1.50-slim - before_script: - - apt update -y - - apt install -y --no-install-recommends libpq-dev - - cargo -V - script: - - cargo test --manifest-path openapi_type/Cargo.toml --all-features -- trybuild - - cargo test --no-default-features --features full --tests -- --ignored - cache: - key: cargo-1-50-all paths: - cargo/ - target/ readme: stage: test - image: ghcr.io/msrd0/cargo-readme - before_script: - - cargo readme -V + image: msrd0/cargo-readme script: - - cargo readme -t README.tpl -o README.md.new + - cargo readme -r gotham_restful -t ../README.tpl >README.md.new - diff README.md README.md.new -rustfmt: - stage: test - image: - name: alpine:3.13 - before_script: - - apk add rustup - - rustup-init -qy --default-host x86_64-unknown-linux-musl --default-toolchain none
The documentation is located here' >public/index.html - artifacts: - paths: - - public + - cd gotham_restful_derive + - cargo publish + - sleep 10s + - cd ../gotham_restful + - cargo publish + - cd .. only: - - master + - tags diff --git a/CHANGELOG.md b/CHANGELOG.md deleted file mode 100644 index dc51188..0000000 --- a/CHANGELOG.md +++ /dev/null @@ -1,48 +0,0 @@ -# Changelog -All notable changes to this project will be documented in this file. - -The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), -and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). - -## [Unreleased] - -## [0.2.1] - 2021-03-04 -### Changed - - Pin version of `openapiv3` dependency to `0.3.2` - -## [0.2.0] - 2021-02-27 -### Added - - Support custom HTTP response headers - - New `endpoint` router extension with associated `Endpoint` trait ([!18]) - - Support for custom endpoints using the `#[endpoint]` macro ([!19]) - - Support for `anyhow::Error` (or any type implementing `Into