diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..3261539 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,20 @@ +variables: + CARGO_HOME: $CI_PROJECT_DIR/.cargo + +.cached: &cached + cache: + key: $CI_COMMIT_REF_NAME + untracked: true + paths: + - target/ + - .cargo/ + +.test_job: &test_job + <<: *cached + environment: test + +test:rust_1_23_0: + <<: *test_job + image: "rust:1.23.0" + script: + - cargo test --all diff --git a/README.md b/README.md index 219a62f..0eab74a 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +[![pipeline status][gitlab-ci-badge]][gitlab-repo-master] + # Discord RPC Client Discord RPC client for Rust @@ -16,3 +18,6 @@ discord-rpc-client = "^0.1" ## Examples Examples can be found in the examples directory in this repo. + +[gitlab-ci-badge]: https://gitlab.com/valeth/discord-rpc-client.rs/badges/master/pipeline.svg +[gitlab-repo-master]: https://gitlab.com/valeth/discord-rpc-client.rs/commits/master