fix travis.yml after changing Cargo.toml

This commit is contained in:
Elichai Turkel 2020-08-27 23:42:19 +03:00
parent 6511fad231
commit fbcfc5fc88
No known key found for this signature in database
GPG Key ID: 9383CDE9E8E66A7F
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ script:
- if [ ${TRAVIS_RUST_VERSION} == "stable" -a "$TRAVIS_OS_NAME" = "linux" ]; then - if [ ${TRAVIS_RUST_VERSION} == "stable" -a "$TRAVIS_OS_NAME" = "linux" ]; then
clang --version && clang --version &&
CARGO_TARGET_DIR=wasm cargo install --verbose --force wasm-pack && CARGO_TARGET_DIR=wasm cargo install --verbose --force wasm-pack &&
sed -i 's/\[lib\]/[lib]\ncrate-type = ["cdylib", "rlib"]/' Cargo.toml && printf '\n[lib]\ncrate-type = ["cdylib", "rlib"]\n' >> Cargo.toml &&
CC=clang-9 wasm-pack build && CC=clang-9 wasm-pack build &&
CC=clang-9 wasm-pack test --node; CC=clang-9 wasm-pack test --node;
fi fi