File tree Expand file tree Collapse file tree 2 files changed +13
-8
lines changed Expand file tree Collapse file tree 2 files changed +13
-8
lines changed Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
3
- # ## Test hardhat integration
3
+ echo " Testing hardhat integration of $( realpath " $( which crytic-compile ) " ) "
4
4
5
5
cd tests/hardhat || exit 255
6
6
7
7
npm install
8
8
9
- crytic-compile .
10
- if [ $? -ne 0 ]
11
- then
12
- echo " hardhat test failed"
13
- exit 255
9
+ if ! crytic-compile .
10
+ then echo " Monorepo test failed" && exit 255
11
+ else echo " Monorepo test passed" && exit 0
14
12
fi
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
3
- # ## Test monorepo integration
3
+ echo " Testing monorepo integration of $( realpath " $( which crytic-compile ) " ) "
4
4
5
5
cd tests/monorepo || exit 255
6
6
7
7
npm install
8
8
9
+ echo " Testing from the root of a monorepo"
10
+ if ! crytic-compile ./contracts
11
+ then echo " Monorepo test failed" && exit 255
12
+ fi
13
+
9
14
cd contracts || exit 255
10
15
16
+ echo " Testing from within a subdir of a monorepo"
11
17
if ! crytic-compile .
12
18
then echo " Monorepo test failed" && exit 255
13
- else echo " Monorepo test passed" && exit 0
14
19
fi
20
+
21
+ echo " Monorepo test passed" && exit 0
You can’t perform that action at this time.
0 commit comments