gitlabci: Disable normal builds now that tests can run on the flatpak one.

This commit is contained in:
Jordan Petridis 2018-03-19 12:00:53 +02:00
parent 5425ca35b3
commit 28965dc2b1
No known key found for this signature in database
GPG Key ID: CEABAD9F5683B9A6

View File

@ -1,4 +1,5 @@
stages:
- flatpak
- test
- lint
@ -39,15 +40,21 @@ stable:test:
# https://hub.docker.com/_/rust/
image: "rust"
<<: *cargo_test
only:
- schedule
- web
# nightly:test:
nightly:test:
# https://hub.docker.com/r/rustlang/rust/
# image: "rustlang/rust:nightly"
# <<: *cargo_test
image: "rustlang/rust:nightly"
<<: *cargo_test
only:
- schedule
- web
flatpak:
image: registry.gitlab.com/alatiera/gnome-nightly-oci/rust-bundle:latest
stage: test
stage: flatpak
before_script:
# https://gitlab.gnome.org/alatiera/Hammond/issues/55
- dnf install -y glib2-devel
@ -93,12 +100,13 @@ rustfmt:
# Configure and run clippy on nightly
# Only fails on errors atm.
# clippy:
# image: "rustlang/rust:nightly"
# stage: lint
# script:
# - rustc --version && cargo --version
# - cargo install clippy --force
# # Force regeneration of gresources regardless of artifacts chage
# - cd hammond-gtk/resources/ && glib-compile-resources --generate resources.xml && cd ../../
# - cargo clippy --all
clippy:
image: "rustlang/rust:nightly"
stage: lint
script:
- rustc --version && cargo --version
- cargo install clippy --force
# Force regeneration of gresources regardless of artifacts chage
- cd hammond-gtk/resources/ && glib-compile-resources --generate resources.xml && cd ../../
- cargo clippy --all
when: manual