Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add .ci directory to run tests on CI #30

Merged
merged 9 commits into from Dec 4, 2019
Merged

Add .ci directory to run tests on CI #30

merged 9 commits into from Dec 4, 2019

Conversation

russcam
Copy link
Contributor

@russcam russcam commented Dec 3, 2019

This PR adds a .ci directory to the repository with contents that will allow tests to be run on CI in the future.

The .ci directory contains a DockerFile that compiles the client package in test mode (i.e. it compiles dependencies also used in tests), currently Debug/Unoptimized. The container is currently based on rust nightly because the reqwest dependency is a preview that depends on another crate that uses features that do not allow it to be run on stable. Once these stabilize, stable should be used rather than nightly.

Shell and PowerShell scripts are included that

  1. Create a docker network
  2. Start Elasticsearch in a container and expose it on the network
  3. Runs cargo test against the client container

CI uses the shell scripts, and the PowerShell scripts are provided to allow running it locally on Windows.

This commit renames the support module to common, to better align name with intent.
This commit adds the .ci directory with DockerFile, scripts and certs to compile
the project and run tests on CI. This follows the convention of other official language clients.
This commit compiles the client in test mode, compiling all the test dependencies
This commit adds a .dockerignore file that ignores files and directories that are not
relevant to the docker build context.
This commit indexes some documents into Elasticsearch as a setup for integration tests.
@russcam russcam merged commit 8883077 into master Dec 4, 2019
@russcam russcam deleted the enhancement/tests branch December 5, 2019 04:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant