Build project with --locked on CI (#743)

* Add --locked to the cargo build

* Remove trailing spaces

* Update Cargo.lock
This commit is contained in:
Sergey Pepyakin
2018-09-15 11:06:20 +03:00
committed by Gav Wood
parent b76660afd4
commit 56def2a38b
2 changed files with 71 additions and 66 deletions
+4 -4
View File
@@ -32,7 +32,7 @@ variables:
when: on_success
expire_in: 1 mos
paths:
- target/release/polkadot
- target/release/polkadot
.determine_version: &determine_version |
export VERSION=$(grep -m 1 "version =" Cargo.toml | awk '{print $3}' | tr -d '"' | tr -d "\n")
@@ -50,9 +50,9 @@ test:rust:stable: &test
- ./scripts/init.sh
- export PATH="${CI_PROJECT_DIR}/cargo/bin/:$PATH"
- ./scripts/build.sh
- time cargo test --all --release
- time cargo test --all --release --locked
tags:
- rust-stable
- rust-stable
.optional_test: &optional_test
<<: *test
@@ -72,7 +72,7 @@ build:linux:ubuntu:amd64: &build
script:
- ./scripts/init.sh
- export PATH="${CI_PROJECT_DIR}/cargo/bin/:$PATH"
- ./scripts/build.sh
- ./scripts/build.sh
- cargo build --release
<<: *collect_artifacts
tags: