From 501004a196629099aad9639822f328027b51f4d6 Mon Sep 17 00:00:00 2001 From: ekexium Date: Thu, 24 Jun 2021 15:42:24 +0800 Subject: [PATCH 1/2] ci: remove doc action and travis config Signed-off-by: ekexium --- .github/workflows/doc.yml | 33 ----------------------- .travis.yml | 55 --------------------------------------- README.md | 2 -- 3 files changed, 90 deletions(-) delete mode 100644 .github/workflows/doc.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/doc.yml b/.github/workflows/doc.yml deleted file mode 100644 index 9b83cc5e..00000000 --- a/.github/workflows/doc.yml +++ /dev/null @@ -1,33 +0,0 @@ -on: - push: - branches: [master] - -name: Deploy rustdoc - -jobs: - FTP-Deploy-Action: - name: FTP-Deploy-Action - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2.1.0 - with: - fetch-depth: 2 - - - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: nightly - override: true - - - name: Build docs - run: cargo doc --document-private-items - - - name: sftp to server - uses: wlixcc/SFTP-Deploy-Action@v1.0 - with: - username: 'docclientftp' - server: '161.35.234.130' - ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }} - local_path: 'target/doc/*' - remote_path: '/var/www/tikv-dev/doc/rust-client' - args: '-o ConnectTimeout=5' diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index a04c9370..00000000 --- a/.travis.yml +++ /dev/null @@ -1,55 +0,0 @@ -sudo: false - -language: rust -os: - - linux - # - windows # TODO: https://github.com/pingcap/kvproto/issues/355 - - osx -rust: - - stable - - nightly - -env: - global: - - RUST_BACKTRACE=1 - - RUSTFLAGS="-D warnings" - - RUSTDOCFLAGS="-D warnings" - -addons: - apt: - update: true - sources: - - sourceline: 'ppa:maarten-fonville/protobuf' - packages: - - protobuf-compiler - homebrew: - packages: - - protobuf - - cmake - - go - -install: - - if [[ $TRAVIS_OS_NAME == "linux" && $TRAVIS_RUST_VERSION == "stable" ]]; then rustup component add rustfmt; fi - - if [[ $TRAVIS_OS_NAME == "linux" && $TRAVIS_RUST_VERSION == "stable" ]]; then rustup component add clippy; fi - - if [[ $TRAVIS_OS_NAME == "windows" ]]; then choco install golang cmake strawberryperl protoc; fi - - if [[ $TRAVIS_OS_NAME == "windows" ]]; then export PATH="$PATH:/c/Go/bin/:/c/Program Files/CMake/bin"; fi - - if [[ $TRAVIS_OS_NAME == "linux" && $TRAVIS_RUST_VERSION == "nightly" ]]; then curl --proto '=https' --tlsv1.2 -sSf https://tiup-mirrors.pingcap.com/install.sh | sh; fi - -before_script: - - eval "$(gimme stable)" - -script: - - which go && go version - - if [[ $TRAVIS_OS_NAME == "linux" && $TRAVIS_RUST_VERSION == "stable" ]]; then cargo fmt -- --check; fi - - if [[ $TRAVIS_OS_NAME == "linux" && $TRAVIS_RUST_VERSION == "stable" ]]; then cargo clippy -- -D clippy::all; fi - - cargo build --all - - cargo build --examples - - if [[ $TRAVIS_OS_NAME == "linux" && $TRAVIS_RUST_VERSION == "nightly" ]]; then make doc; fi - - if [[ $TRAVIS_RUST_VERSION == "nightly" ]]; then cargo test --all -- --nocapture; fi - - if [[ $TRAVIS_OS_NAME == "linux" && $TRAVIS_RUST_VERSION == "nightly" ]]; then source /home/travis/.bash_profile; fi - - if [[ $TRAVIS_OS_NAME == "linux" && $TRAVIS_RUST_VERSION == "nightly" ]]; then make tiup; fi - - if [[ $TRAVIS_OS_NAME == "linux" && $TRAVIS_RUST_VERSION == "nightly" ]]; then sleep 60; fi - - if [[ $TRAVIS_OS_NAME == "linux" && $TRAVIS_RUST_VERSION == "nightly" ]]; then MULTI_REGION=1 make integration-test; fi - - if [[ $TRAVIS_OS_NAME == "linux" && $TRAVIS_RUST_VERSION == "nightly" ]]; then cargo run --example raw -- --pd="127.0.0.1:2379"; fi - - if [[ $TRAVIS_OS_NAME == "linux" && $TRAVIS_RUST_VERSION == "nightly" ]]; then cargo run --example transaction -- --pd="127.0.0.1:2379"; fi - - if [[ $TRAVIS_OS_NAME == "linux" && $TRAVIS_RUST_VERSION == "nightly" ]]; then cargo run --example pessimistic -- --pd="127.0.0.1:2379"; fi diff --git a/README.md b/README.md index 815c6937..7a90065c 100644 --- a/README.md +++ b/README.md @@ -3,8 +3,6 @@ [![Docs](https://docs.rs/tikv-client/badge.svg)](https://docs.rs/tikv-client) [![Build Status](https://travis-ci.org/tikv/client-rust.svg?branch=master)](https://travis-ci.org/tikv/client-rust) -[Nightly docs](https://www.tikv.dev/doc/rust-client/tikv_client/) - This crate provides an easy-to-use client for [TiKV](https://github.com/tikv/tikv), a distributed, transactional key-value database written in Rust. This crate lets you connect to a TiKV cluster and use either a transactional or raw (simple get/put style without transactional consistency guarantees) API to access and update your data. From b5468665b680c1c9dc0f557c2bff2b5bccda1021 Mon Sep 17 00:00:00 2001 From: ekexium Date: Fri, 6 Aug 2021 10:28:33 +0800 Subject: [PATCH 2/2] ci: deny warnings Signed-off-by: ekexium --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index 268dc574..883bb0d7 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,5 @@ +export RUSTFLAGS=-Dwarnings + .PHONY: default check unit-test integration-tests test doc docker-pd docker-kv docker all default: check