gitlab-ci tweak.

This commit is contained in:
Jordan Petridis 2017-12-05 07:37:43 +02:00
parent 0835b5ed4f
commit c8c0699d9c
No known key found for this signature in database
GPG Key ID: CEABAD9F5683B9A6
2 changed files with 9 additions and 5 deletions

View File

@ -38,19 +38,21 @@ variables:
# - ./configure --prefix=/usr/local
# - make && sudo make install
test:stable:
stable:test:
# Stable img
# https://hub.docker.com/_/rust/
image: "rust"
stage: test
script:
- rustc --version && cargo --version
- cargo build
- cargo test --verbose -- --test-threads=1
test:nightly:
nightly:test:
# Nightly
# https://hub.docker.com/r/rustlang/rust/
image: "rustlang/rust:nightly"
stage: test
script:
- rustc --version && cargo --version
- cargo build
@ -59,8 +61,9 @@ test:nightly:
# Configure and run rustfmt on nightly
# Exits and builds fails if on bad format
lint:rustfmt:
rustfmt:
image: "rustlang/rust:nightly"
stage: lint
script:
- rustc --version && cargo --version
- cargo install rustfmt-nightly
@ -68,8 +71,9 @@ lint:rustfmt:
# Configure and run clippy on nightly
# Only fails on errors atm.
lint:clippy:
clippy:
image: "rustlang/rust:nightly"
stage: lint
script:
- rustc --version && cargo --version
- cargo install clippy

View File

@ -30,7 +30,7 @@
{
"type": "git",
"url": "https://gitlab.gnome.org/alatiera/Hammond.git",
"branch": "client-rework"
"branch": "master"
}
]
}