Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
parity
Mirrored projects
ink
Commits
87647d4b
Verified
Commit
87647d4b
authored
Oct 02, 2019
by
Denis_P
🏑
Browse files
workspace check timed
parent
1470c2fe
Pipeline
#53139
failed with stage
in 5 minutes and 21 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
87647d4b
...
...
@@ -45,7 +45,7 @@ variables:
#### stage: test
check-workspace
:
.
check-workspace
:
stage
:
test
<<
:
*docker-env
script
:
...
...
@@ -61,27 +61,32 @@ check-workspace:
fi
-
sccache -s
examples-wasm
:
stage
:
test
<<
:
*docker-env
script
:
-
cargo build --release --no-default-features --target=wasm32-unknown-unknown --verbose --manifest-path examples/lang/$example/Cargo.toml
-
sccache -s
examples-test
:
check-workspace
:
stage
:
test
<<
:
*docker-env
script
:
-
cargo test --verbose --manifest-path examples/lang/$example/Cargo.toml
-
sccache -s
-
time cargo check --verbose --all --all-features
-
time cargo check --verbose --all --no-default-features
-
time cargo fmt --verbose --all -- --check
-
time cargo clippy --verbose --all --all-features -- -D warnings
-
time cargo clippy --verbose --all --no-default-features -- -D warnings
-
time cargo test --verbose --all --all-features
-
time cargo build --verbose --all --no-default-features --release --target=wasm32-unknown-unknown
examples
-abi
:
check-
examples
:
stage
:
test
<<
:
*docker-env
script
:
-
cargo run --package abi-gen --manifest-path examples/lang/$example/Cargo.toml
-
./scripts/check-examples.sh
-
check_examples=$?
-
if [ $check_examples -eq 0 ];
then
echo "Examples checks have passed!";
exit 0;
else
echo "Some examples checks have not passed!";
exit 1;
fi
-
sccache -s
# stage: build
\ No newline at end of file
scripts/check-examples.sh
View file @
87647d4b
...
...
@@ -19,7 +19,7 @@ declare -A results_abi
all_checks_passed
=
0
for
example
in
$(
ls
examples/lang
)
;
do
cargo build
--release
--no-default-features
--target
=
wasm32-unknown-unknown
--verbose
--manifest-path
examples/lang/
$example
/Cargo.toml
time
cargo build
--release
--no-default-features
--target
=
wasm32-unknown-unknown
--verbose
--manifest-path
examples/lang/
$example
/Cargo.toml
result_wasm
=
$?
let
"all_checks_passed |=
$result_wasm
"
if
[
$result_wasm
-eq
0
]
...
...
@@ -28,7 +28,7 @@ for example in $(ls examples/lang); do
else
results_wasm[
$example
]=
"ERROR"
fi
cargo
test
--verbose
--manifest-path
examples/lang/
$example
/Cargo.toml
time
cargo
test
--verbose
--manifest-path
examples/lang/
$example
/Cargo.toml
result_test
=
$?
let
"all_checks_passed |=
$result_test
"
if
[
$result_test
-eq
0
]
...
...
@@ -37,7 +37,7 @@ for example in $(ls examples/lang); do
else
results_test[
$example
]=
"ERROR"
fi
cargo run
--package
abi-gen
--manifest-path
examples/lang/
$example
/Cargo.toml
time
cargo run
--package
abi-gen
--manifest-path
examples/lang/
$example
/Cargo.toml
result_abi
=
$?
let
"all_checks_passed |=
$result_abi
"
if
[
$result_abi
-eq
0
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment