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

View File

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