added ci scripts for rust

This commit is contained in:
Simon Wörner
2017-03-30 21:55:00 +02:00
parent d877ec774f
commit 80934a5c70
4 changed files with 44 additions and 2 deletions

View File

@@ -1,8 +1,18 @@
# image: scorpil/rust:stable
image: scorpil/rust:stable
stages:
- test
cargo:test:
stage: test
script:
- ci/run-cargo-test.sh
rustfmt:
stage: test
script:
- ci/run-rustfmt.sh
shellcheck:
stage: test
image: ubuntu:yakkety
@@ -13,4 +23,4 @@ shellcheck:
- export LANGUAGE=en_US:en
- export LC_ALL=en_US.UTF-8
script:
- find . -type f -name '*.sh' -print0 | xargs -n 1 -0 shellcheck --color
- ci/run-shellcheck.sh