From cbedbc01266bcc00bb93a8710631154f78ffa2bd Mon Sep 17 00:00:00 2001 From: Jose Quintana Date: Wed, 13 Jan 2021 16:09:43 +0100 Subject: [PATCH] chore: minor github actions updates --- .travis.yml | 35 ----------------------------------- Makefile | 5 +++++ README.md | 2 +- 3 files changed, 6 insertions(+), 36 deletions(-) delete mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index eb5a0dd..0000000 --- a/.travis.yml +++ /dev/null @@ -1,35 +0,0 @@ -language: rust -sudo: required -dist: trusty -notifications: - email: false -addons: - apt: - packages: - - libssl-dev -env: - - PATH=$HOME/.cargo/bin:$PATH -script: - - cargo test -j2 --all -matrix: - fast_finish: true - include: - - rust: stable - # Run rustfmt in its own shard. - - rust: stable - env: - - SHARD=rustfmt - before_script: - - rustup component add --toolchain stable rustfmt-preview - script: - - echo "Checking project codebase with rustfmt release `cargo fmt --version`." - - cargo fmt --all -- --check - # Run Clippy in its own shard. - - rust: stable - env: - - SHARD=clippy - before_script: - - rustup component add --toolchain stable clippy - script: - - echo "Checking project codebase with Clippy release `cargo clippy --version`." - - cargo clippy --all --profile test diff --git a/Makefile b/Makefile index 0a6ff85..bde0065 100644 --- a/Makefile +++ b/Makefile @@ -34,6 +34,11 @@ dev: @cargo make --makefile Makefile.toml watch .PHONY: dev +lint: + @rustc -vV + @cargo clippy --all-features -- -D warnings +.PHONY: lint + build: @rustc -vV @cargo build --release --target $(PKG_TARGET) diff --git a/README.md b/README.md index ce10a20..c5fbc28 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Static Web Server [![CI](https://github.com/joseluisq/static-web-server/workflows/CI/badge.svg)](https://github.com/joseluisq/static-web-server/actions?query=workflow%3ACI) [![Docker Image Version (tag latest semver)](https://img.shields.io/docker/v/joseluisq/static-web-server/1)](https://hub.docker.com/r/joseluisq/static-web-server/) [![Docker Image Size (tag)](https://img.shields.io/docker/image-size/joseluisq/static-web-server/1)](https://hub.docker.com/r/joseluisq/static-web-server/tags) [![Docker Image](https://img.shields.io/docker/pulls/joseluisq/static-web-server.svg)](https://hub.docker.com/r/joseluisq/static-web-server/) +# Static Web Server [![CI](https://github.com/joseluisq/static-web-server/workflows/CI/badge.svg?branch=1.x)](https://github.com/joseluisq/static-web-server/actions?query=workflow%3ACI) [![Docker Image Version (tag latest semver)](https://img.shields.io/docker/v/joseluisq/static-web-server/1)](https://hub.docker.com/r/joseluisq/static-web-server/) [![Docker Image Size (tag)](https://img.shields.io/docker/image-size/joseluisq/static-web-server/1)](https://hub.docker.com/r/joseluisq/static-web-server/tags) [![Docker Image](https://img.shields.io/docker/pulls/joseluisq/static-web-server.svg)](https://hub.docker.com/r/joseluisq/static-web-server/) *This the stable `v1`. For the `v2` upcoming refer to [master](https://github.com/joseluisq/static-web-server) branch.* -- libgit2 1.7.2