Fix node-template-release and make cargo doc faster (#3019)

This commit is contained in:
Bastian Köcher
2019-07-04 16:26:03 +02:00
committed by GitHub
parent fb8bb00158
commit ae80c05232
2 changed files with 1 additions and 4 deletions
+1 -1
View File
@@ -242,7 +242,7 @@ build-rust-doc-release:
<<: *build-only
script:
- rm -f ./crate-docs/index.html # use it as an indicator if the job succeeds
- time cargo +nightly doc --release --all --verbose
- BUILD_DUMMY_WASM_BINARY=1 time cargo +nightly doc --release --all --verbose
- cp -R ./target/doc ./crate-docs
- echo "<meta http-equiv=refresh content=0;url=substrate_service/index.html>" > ./crate-docs/index.html
- sccache -s
@@ -136,9 +136,6 @@ fn write_cargo_toml(path: &Path, cargo_toml: CargoToml) {
/// Build and test the generated node-template
fn build_and_test(path: &Path, cargo_tomls: &[PathBuf]) {
// Build wasm
assert!(Command::new(path.join("./scripts/build.sh")).current_dir(path).status().expect("Compiles wasm").success());
// Build node
assert!(Command::new("cargo").args(&["build", "--all"]).current_dir(path).status().expect("Compiles node").success());