The core protocol of WoopChain
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
woop/.travis.yml

47 lines
1.7 KiB

os: linux
dist: jammy
language: go
go:
- 1.19.5
go_import_path: github.com/woop-chain/woop
cache:
directories:
- docker_images
env:
- TEST="make"
- TEST="bash ./scripts/travis_go_checker.sh"
- TEST="bash ./scripts/travis_rpc_checker.sh"
- TEST="bash ./scripts/travis_rosetta_checker.sh"
# upgrade docker to latest stable version
addons:
apt:
sources:
- sourceline: deb https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable
packages:
- docker.io
install:
# default working directory with source code is automatically set to
# /home/travis/gopath/src/github.com/woop-chain/woop
# https://docs.travis-ci.com/user/languages/go/#go-import-path
- echo $TRAVIS_PULL_REQUEST_BRANCH
- git clone https://github.com/woop-chain/mcl.git $GOPATH/src/github.com/woop-chain/mcl
- git clone https://github.com/woop-chain/bls.git $GOPATH/src/github.com/woop-chain/bls
- git clone https://github.com/woop-chain/woop-test.git $GOPATH/src/github.com/woop-chain/woop-test
- (cd $GOPATH/src/github.com/woop-chain/mcl; make -j4)
- (cd $GOPATH/src/github.com/woop-chain/bls; make BLS_SWAP_G=1 -j4)
# - curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.41.1
- make go-get
- go install golang.org/x/tools/cmd/goimports@latest
- go install github.com/woop-chain/gencodec@latest
script:
- ${TEST}
after_success:
- wget https://raw.githubusercontent.com/DiscordHooks/travis-ci-discord-webhook/master/send.sh
- chmod +x send.sh
- ./send.sh success $WEBHOOK_URL
after_failure:
- wget https://raw.githubusercontent.com/DiscordHooks/travis-ci-discord-webhook/master/send.sh
- chmod +x send.sh
- ./send.sh failure $WEBHOOK_URL