-
Notifications
You must be signed in to change notification settings - Fork 0
/
jenkins.sh
executable file
·54 lines (43 loc) · 1.11 KB
/
jenkins.sh
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
#!/bin/bash
set -ex
PKG=github.com/diademnetwork/diademchain
# setup temp GOPATH
export GOPATH=/tmp/gopath-$BUILD_TAG
export
export PATH=$GOPATH:$PATH:/var/lib/jenkins/workspace/commongopath/bin:$GOPATH/bin
DIADEM_SRC=$GOPATH/src/$PKG
mkdir -p $DIADEM_SRC
rsync -r --delete . $DIADEM_SRC
if [[ "$OSTYPE" == "linux-gnu" ]]; then
export CGO_CFLAGS="-I/usr/local/include/leveldb"
export CGO_LDFLAGS="-L/usr/local/lib/ -L/usr/lib/x86_64-linux-gnu/ -lsnappy"
#elif [[ "$OSTYPE" == "darwin"* ]]; then #osx
fi
cd $DIADEM_SRC
make clean
make get_lint
make deps
make lint || true
make linterrors
make # on OSX we don't need any C precompiles like cleveldb
make validators-tool
make tgoracle
make diademcoin_tgoracle
make dposv2_oracle
make plasmachain
make diadem-cleveldb
make plasmachain-cleveldb
export DIADEM_BIN=`pwd`/diadem
export DIADEM_VALIDATORS_TOOL=`pwd`/e2e/validators-tool
export GORACE="log_path=`pwd`/racelog"
#make diadem-race
#make test-race
make test
#make test-no-evm
make no-evm-tests
make test-app-store-race
#setup & run truffle tests
#cd e2e/tests/truffle
#yarn
#cd ../receipts
#bash ./run_truffle_tests.sh