mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-25 04:57:17 +00:00
397a0fbecc
* add a simple staging test * add buildkite stuff * buildkite setup like in the [example](https://github.com/buildkite/golang-example) * yamllint * add running geth for 1m as a buildkite command * fixups post go mod * workaround a stupid go issue * add 1 hour test * fix bash maths * run the job for 5 hours
29 lines
493 B
Bash
Executable File
29 lines
493 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# running the job for 5 hours
|
|
let SLEEP_TIME=5*60*60
|
|
|
|
# GOFLAGS=-modcacherw is required for our CI
|
|
# to be able to remove go modules cache
|
|
GOFLAGS=-modcacherw make geth
|
|
|
|
echo "running geth..."
|
|
./build/bin/geth > tgeth.log 2>&1 &
|
|
|
|
GETH_PID=$!
|
|
|
|
echo "sleeping for $SLEEP_TIME seconds"
|
|
|
|
sleep $SLEEP_TIME
|
|
|
|
echo "killing GETH (pid=$GETH_PID)"
|
|
kill $GETH_PID
|
|
echo "boom"
|
|
|
|
wait $GETH_PID
|
|
|
|
GETH_STATUS=$?
|
|
echo "The exit status of the process was $GETH_STATUS"
|
|
|
|
exit $GETH_STATUS
|