2017-10-20 11:35:11 +00:00
|
|
|
notifications:
|
|
|
|
email: false
|
2016-09-28 08:07:30 +00:00
|
|
|
language: go
|
|
|
|
go:
|
2018-05-07 20:58:09 +00:00
|
|
|
- 1.10.x
|
2016-09-28 08:07:30 +00:00
|
|
|
sudo: false
|
2017-02-27 12:52:10 +00:00
|
|
|
dist: trusty
|
2018-05-04 09:54:12 +00:00
|
|
|
install: make setup
|
2017-10-20 10:10:28 +00:00
|
|
|
jobs:
|
|
|
|
include:
|
2018-04-05 12:37:39 +00:00
|
|
|
- stage: Lint & Vendor Check
|
2018-04-19 09:58:35 +00:00
|
|
|
sudo: required
|
2018-05-02 09:08:53 +00:00
|
|
|
before_script: make dep-ensure
|
2018-04-05 12:37:39 +00:00
|
|
|
script:
|
|
|
|
- make lint
|
|
|
|
- make vendor-check
|
2017-11-07 17:46:11 +00:00
|
|
|
- stage: Test unit and integration
|
2018-05-07 15:08:00 +00:00
|
|
|
script:
|
|
|
|
- make test-unit-race
|
|
|
|
- make test-unit-coverage
|
2017-11-29 06:48:40 +00:00
|
|
|
- stage: Test e2e on private network
|
2018-05-07 15:08:00 +00:00
|
|
|
script:
|
|
|
|
- make test-e2e-race
|
2017-11-07 17:46:11 +00:00
|
|
|
- stage: Test e2e on public network
|
2018-04-13 14:38:38 +00:00
|
|
|
# Disable running this stage for pushes as it's not needed to run it twice.
|
|
|
|
# We only want to check if tests on public testnet pass in a merge build.
|
|
|
|
# Also, disable for fork builds as they do not have access to
|
|
|
|
# ACCOUNT_PASSWORD environment variable anyway.
|
2018-05-07 15:08:00 +00:00
|
|
|
if: ((type != push) OR (branch = "develop")) AND (fork = false)
|
2018-02-07 10:48:03 +00:00
|
|
|
script:
|
2018-05-03 08:59:39 +00:00
|
|
|
# Sync the chain first. It will time out after 30 minutes. Used network: Rinkeby.
|
2018-02-08 08:51:53 +00:00
|
|
|
- make statusgo
|
2018-06-14 08:56:01 +00:00
|
|
|
- ./build/bin/statusd -datadir=.ethereumtest/Rinkeby -les -networkid=4 -sync-and-exit=45 -log=WARN -standalone=false -discovery=false -ntp=false
|
2018-02-07 10:48:03 +00:00
|
|
|
- make test-e2e networkid=4
|
2016-09-28 08:07:30 +00:00
|
|
|
cache:
|
|
|
|
directories:
|
2017-11-07 17:46:11 +00:00
|
|
|
- ".ethereumtest/Mainnet"
|
|
|
|
- ".ethereumtest/Rinkeby"
|
|
|
|
- ".ethereumtest/Ropsten"
|
|
|
|
- ".ethereumtest/StatusChain"
|
|
|
|
env:
|
|
|
|
matrix:
|
|
|
|
secure: pKU50Ex43gQUElL7R9U/N6aSUdubA7ypXQeH+qFGu65mb5RAReTPHHnVmO+sEuVoepmy19T3jSfRUWupY8YsLljJpJY12y9UDg22iCbC7AFbvrVWatDIKZVsOFEvtXBiF/gJ8jPHILhm+LytekbnsB1O04YzWb/5ZOlGOxSjfoqmevGJ17vUdnPcIvRzDq41xopITCPaK1cg8PXdZVhvy2FW50hTixRIf1wVmk/qM8LWvTQTf1b+KhA9aZaIV8lzJyQvp5rUcNmQhse9/+sagldBEF4YqXCDsQsaOkXuR4furi66b3QtMKpPftUiitsQXg4R1N25wQje5W6jt/mYaZynJSB4EDF5gTvDElxdQQ352mvBircv3plesUMM2NyEVcuOSNtjQSjdaNdes2MbLIER5qDehJNNv8ZaL3dC4V9dxI/L3ajtUvULBPD39sr2L1xkA7bNsOJHQy4CBU/i8YHsbNdlq55Z8kCueNGTi31tuxjuVsfLZtitLUjJ6l/YF/T5qhoM6UVVLtfk91WCPWgDrJ7NqIMNuo+Rhph0zYvizhB686cL2Vs4tJJEr+9ltaXtxs3msbGLMshTYcHbg4PbBLZXxo0MNpq7zTDUDPkWcBpYP7qfg7Z1f6dZ4Q4tr1WneO5XST547sxjtHIp6+u2XEr5JOj5JDjHCJQoA1c=
|