elastic / elasticsearch-rs

Official Elasticsearch Rust Client
https://www.elastic.co/guide/en/elasticsearch/client/rust-api/current/index.html
Apache License 2.0
695 stars 71 forks source link

Add CI jobs and scripts #108

Closed russcam closed 4 years ago

russcam commented 4 years ago

This commit adds the CI jobs and build scripts to run the yaml tests for the client in CI.

The Dockerfile is updated to run the yaml tests. A specific rust nightly version is defined that defines the rust toolchain used; current rust nightly (2020-06-12) is broken when attempting to build this project so a known good nightly version is used, which can be overridden with RUST_TOOLCHAIN environment variable.

Remove PowerShell scripts as shell scripts can be called from WSL2 with Docker on Windows.

russcam commented 4 years ago

The cargo test results need to be transformed to junit output and persisted in a junit.xml file within the tests_output directory.

cargo junit looks promising to perform this, however it is missing the ability to pass other cargo test command line arguments such as --test-threads=1, from what I can see, which are required for the yaml tests

russcam commented 4 years ago

I'm going to merge this in, and follow up with handling cargo test output to junit

russcam commented 4 years ago

clippy check failure is related to https://github.com/rust-lang/cargo/issues/8351