forked from Consensys/teku
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathartemis.env
48 lines (33 loc) · 1.57 KB
/
artemis.env
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
# ENV settings to make development easier
PROJECT_ROOT=`pwd`
# PATH modifications
NEW_DIR=$PROJECT_ROOT/scripts
if ! echo $PATH | grep -E -q "(^|:)$NEW_DIR($|:)" ; then
export PATH="$NEW_DIR:$PATH"
fi
# download flow
if [ ! -d "gradle/flow" ]; then
echo "Flow not detected. Downloading it to gradle/flow"
mkdir -p gradle/flow && \
curl http://download.findtheflow.io/flow-20180402083612.zip --output gradle/flow.zip && \
unzip gradle/flow.zip -d gradle/ && \
mv gradle/flow-20180402083612/* gradle/flow/ && \
rm gradle/flow.zip
fi
# aliases
alias gmash="./gradlew mash"
alias gbuild="./gradlew build"
alias gmashxt="./gradlew mash -x test :eth-reference-tests:test"
alias gbuildxt="./gradlew build -x test :eth-reference-tests:test"
alias gsab="./gradlew spotlessApply build"
alias gsamp="./gradlew spotlessApply && ./gradlew mash --parallel"
alias gsabp="./gradlew spotlessApply && ./gradlew build --parallel"
alias gsabxt="./gradlew spotlessApply build -x test :eth-reference-tests:test"
alias gsampxt="./gradlew spotlessApply && ./gradlew mash --parallel -x test :eth-reference-tests:test"
alias gsabpxt="./gradlew spotlessApply && ./gradlew build --parallel -x test :eth-reference-tests:test"
alias multirun="gsampxt && cd scripts && sh run.sh -n=4 && cd .."
alias multidebug="gsampxt && cd scripts && sh run.sh -n=4 -l=DEBUG && cd .."
alias singlerun="gsampxt && cd scripts && sh run.sh && cd .."
alias singledebug="gsampxt && cd scripts && sh run.sh -n=1 -l=DEBUG && cd .."
alias flow="java -jar gradle/flow/flow-20180402083612.jar"
alias docker-build="sh dockerBuild.sh"