Skip to content

Commit

Permalink
Fix Codecov Upload and Scripts (#9)
Browse files Browse the repository at this point in the history
* Update build/test scripts

* Update readme

* Remove 'do not use'
  • Loading branch information
appcypher authored Apr 21, 2022
1 parent 7a89949 commit 8e59f1f
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 11 deletions.
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div align="center">
<a href="https://github.com/fission-suite" target="_blank">
<img src="https://raw.githubusercontent.com/fission-suite/rs-wnfs/main/assets/logo.svg" alt="Fission Logo" width="100" height="100"></img>
<a href="https://github.com/WebNativeFileSystem" target="_blank">
<img src="https://raw.githubusercontent.com/WebNativeFileSystem/rs-wnfs/main/assets/logo.svg" alt="Fission Logo" width="100" height="100"></img>
</a>

<h1 align="center">WebNative FileSystem (WNFS)</h1>
Expand All @@ -9,13 +9,13 @@
<a href="https://crates.io/crates/wnfs">
<img src="https://img.shields.io/crates/v/wnfs?label=crates" alt="Concurrency Docs">
</a>
<a href="https://codecov.io/gh/fission-suite/rs-wnfs">
<img src="https://codecov.io/gh/fission-suite/rs-wnfs/branch/main/graph/badge.svg?token=95YHXFMFF4" alt="Code Coverage"/>
<a href="https://codecov.io/gh/WebNativeFileSystem/rs-wnfs">
<img src="https://codecov.io/gh/WebNativeFileSystem/rs-wnfs/branch/main/graph/badge.svg?token=95YHXFMFF4" alt="Code Coverage"/>
</a>
<a href="https://github.com/fission-suite/rs-wnfs/actions?query=">
<img src="https://github.com/fission-suite/rs-wnfs/actions/workflows/checks.yaml/badge.svg" alt="Build Status">
<a href="https://github.com/WebNativeFileSystem/rs-wnfs/actions?query=">
<img src="https://github.com/WebNativeFileSystem/rs-wnfs/actions/workflows/checks.yaml/badge.svg" alt="Build Status">
</a>
<a href="https://github.com/fission-suite/rs-wnfs/blob/main/LICENSE">
<a href="https://github.com/WebNativeFileSystem/rs-wnfs/blob/main/LICENSE">
<img src="https://img.shields.io/badge/License-Apache%202.0-blue.svg" alt="License">
</a>
<a href="https://docs.rs/wnfs">
Expand All @@ -27,7 +27,7 @@
</p>
</div>

<div align="center"><sub>:warning: Work in progress. Do not use :warning:</sub></div>
<div align="center"><sub>:warning: Work in progress :warning:</sub></div>

##

Expand Down Expand Up @@ -91,7 +91,7 @@ Its goal is to be as dependency-less as possible in order to be easily compiled
- Clone the repository.

```bash
git https://github.com/fission-suite/rs-wnfs.git
git https://github.com/WebNativeFileSystem/rs-wnfs.git
```

- Change directory
Expand Down
19 changes: 17 additions & 2 deletions scripts/wnfs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,14 @@ help() {
# wnfs build
#
build() {
displayln "build command not implemented yet"
display_header "💿 BUILDING WNFS PROJECT"
cargo build --release

display_header "💿 BUILDING WASM-WNFS PROJECT"
$(
cd $script_dir/../crates/wasm && \
wasm-pack build --target web --release
)
}


Expand All @@ -89,7 +96,8 @@ build() {
# wnfs test
#
test() {
displayln "test command not implemented yet"
display_header "🧪 RUNNING WNFS TESTS"
cargo test -p wnfs -- --nocapture
}


Expand Down Expand Up @@ -170,5 +178,12 @@ displayln() {
printf "\n::: $1 :::\n"
}

# DESCRIPTION:
# A custom print function for headers.
#
display_header() {
printf "\n${green}$1${none}\n\n"
}


main $@

0 comments on commit 8e59f1f

Please sign in to comment.