Skip to content

Commit

Permalink
fix(script,makefile): fix prints and order of operations (#9)
Browse files Browse the repository at this point in the history
* fix(script,makefile): fix prints and order of operations

* fix: update rustlang version

* fix: downgrade rust version

* add version print

* fix: change version

* remove unnecessary code
  • Loading branch information
tronch0 authored Aug 4, 2019
1 parent ac60b85 commit ef66b4a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 16 deletions.
6 changes: 1 addition & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,9 @@ cache: cargo
# - "demo/node_modules"

rust:
- nightly

before_install:
- rustup self update
- nightly-2019-06-22

install:
- rustup update nightly-2019-06-22
- rustup component add --toolchain nightly-2019-06-22 rustfmt
- rustup component add --toolchain nightly-2019-06-22 clippy
- cargo install wasm-pack || echo "wasm-pack already installed"
Expand Down
10 changes: 4 additions & 6 deletions ci/Makefile
Original file line number Diff line number Diff line change
@@ -1,20 +1,18 @@
echo executing makefile

all: install build-wasm build-web

build-wasm:
echo building wasm:
echo "makefile - building wasm:"
wasm-pack build --out-dir ../../demo/pkg/zkif-wasm-zokrates/ ../zkif-wasm-bundles/zkif-wasm-zokrates
wasm-pack build --out-dir ../../demo/pkg/zkif-wasm-bulletproofs/ ../zkif-wasm-bundles/zkif-wasm-bulletproofs

build-web:
echo build-web:
echo "makefile - build-web:"
cd ../demo && npm run build

install:
echo install:
echo "makefile - install:"
cd ../demo && npm install

web-dev:
echo web-dev:
echo "makefile - web-dev:"
cd ../demo && npm run start
10 changes: 5 additions & 5 deletions ci/script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,28 @@

set +x

echo executing scripit.sh
echo -e "executing scripit.sh"

echo processing bulletproof: checks & tests
echo -e "processing bulletproof: checks & tests:"
cd ./zkif-wasm-bundles/zkif-wasm-bulletproofs/
cargo +nightly-2019-06-22 fmt -- --check
cargo +nightly-2019-06-22 clippy -- -D warnings
cargo +nightly-2019-06-22 test

echo processing zk-interface wasm example: checks & tests
echo -e "processing zk-interface wasm example: checks & tests:"
cd ../zkif-wasm-example
cargo +nightly-2019-06-22 fmt -- --check
cargo +nightly-2019-06-22 clippy -- -D warnings
cargo +nightly-2019-06-22 test

echo processing zokrates: checks & tests
echo -e "processing zokrates: checks & tests:"
cd ../zkif-wasm-zokrates
cargo +nightly-2019-06-22 fmt -- --check
cargo +nightly-2019-06-22 clippy -- -D warnings
cargo +nightly-2019-06-22 test

cd ../../ci
make
cd ../demo
# cd ../demo
#npm install
#npm run build

0 comments on commit ef66b4a

Please sign in to comment.