diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d3cdcf5..9a0be79 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,17 +1,21 @@ +image: rust:latest + stages: + - sysdep - build + - test + +sysdep: + stage: sysdep + script: + - apt-get install libudev-dev -rust-latest: +build: stage: build - image: rust:latest script: - cargo build --verbose --features backend_piston,backend_gilrs - - cargo test --verbose --features backend_piston,backend_gilrs -rust-nightly: - stage: build - image: rustlang/rust:nightly +test: + stage: test script: - - cargo build --verbose - - cargo test --verbose - allow_failure: true + - cargo test --features backend_piston,backend_gilrs