Add GitLab CI configuration

This commit is contained in:
Patrick Auernig 2018-03-22 16:03:20 +01:00
parent c4900b959c
commit 58af08b3f7
2 changed files with 25 additions and 0 deletions

20
.gitlab-ci.yml Normal file
View File

@ -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

View File

@ -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