Commit 223c1b78 authored by Éloïs's avatar Éloïs

[ci] upgrade to rust 1.31 (edition 2018)

parent 21ddd6be
Pipeline #4051 failed with stages
in 20 seconds
......@@ -7,16 +7,18 @@ stages:
variables:
CARGO_HOME: $CI_PROJECT_DIR/cargo
.rust_nightly_wasm: &rust_nightly_wasm
image: registry.duniter.org/docker/rust/wasm:v0.0.3
.rust_stable_lin64: &rust_stable_lin64
image: registry.duniter.org/docker/duniter-rs-ci:v0.1.0
tags:
- redshift-rs-nightly
- redshift-rs-stable
before_script:
- export PATH="$HOME/.cargo/bin:$PATH"
- rustup show
- rustc --version && cargo --version
.rust_nightly_lin64: &rust_nightly_lin64
image: rustlang/rust:nightly
.rust_stable_wasm: &rust_stable_wasm
image: registry.duniter.org/docker/rust/wasm:v0.0.4
tags:
- redshift-rs-nightly
before_script:
......@@ -24,37 +26,30 @@ variables:
- rustc --version && cargo --version
fmt:
<<: *rust_nightly_lin64
<<: *rust_stable_lin64
stage: fmt
before_script:
- rustup show
- rustup component add rustfmt-preview --toolchain nightly
- cargo fmt -- --version
script:
- cargo fmt -- --check
allow_failure: true
tests:wasm:nightly:
<<: *rust_nightly_wasm
<<: *rust_stable_wasm
stage: tests
script:
- wasm-pack build
# - wasm-pack test --headless --firefox
clippy:
image: guangie88/rustfmt-clippy:nightly
tags:
- redshift-rs-nightly
<<: *rust_stable_lin64
before_script:
- export PATH="$HOME/.cargo/bin:$PATH"
- rustc --version && cargo --version
- cargo clippy -- -V
stage: clippy
script:
- cargo clippy --all -- -D warnings --verbose
allow_failure: true
publish:npm:
<<: *rust_nightly_wasm
<<: *rust_stable_wasm
stage: publish
script:
- wasm-pack publish
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment