forked from TaggrNetwork/Taggr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
59 lines (47 loc) · 1.22 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
start:
dfx start --background -qqqq
staging_deploy:
NODE_ENV=production DFX_NETWORK=staging make fe
FEATURES=staging dfx build
FEATURES=staging dfx --identity prod deploy --network staging taggr
local_deploy:
FEATURES=dev dfx deploy
dev_build:
FEATURES=dev ./build.sh bucket
FEATURES=dev ./build.sh taggr
FEATURES=dev dfx build
local_reinstall:
make fe
FEATURES=dev dfx deploy --mode=reinstall taggr -y
build:
NODE_ENV=production make fe
./build.sh bucket
./build.sh taggr
test:
make e2e_build
make local_deploy
cargo clippy --tests --benches -- -D clippy::all
POCKET_IC_MUTE_SERVER=true cargo test
npm run test:e2e
pocket_ic:
cd tests && ./download-pocket-ic.sh
fe:
npm run build --quiet
e2e_build:
NODE_ENV=production DFX_NETWORK=local npm run build
FEATURES=dev ./build.sh bucket
FEATURES=dev ./build.sh taggr
e2e_test:
npm run install:e2e
dfx canister create --all
make e2e_build
make start || true # don't fail if DFX is already running
npm run test:e2e
dfx stop
release:
docker build -t taggr .
docker run --rm -v $(shell pwd)/release-artifacts:/target/wasm32-unknown-unknown/release taggr
make hashes
hashes:
git rev-parse HEAD
shasum -a 256 ./release-artifacts/taggr.wasm.gz | cut -d ' ' -f 1