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/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 diff --git a/README.md b/README.md index 3d66a3fe..13b4c84c 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(>= `v5.0.0`) cluster and use either a transactional or raw (simple get/put style without transactional consistency guarantees) API to access and update your data.