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.
41 lines
1.4 KiB
41 lines
1.4 KiB
os: linux
|
|
dist: bionic
|
|
language: go
|
|
go:
|
|
- 1.14
|
|
go_import_path: github.com/harmony-one/harmony
|
|
env:
|
|
- TEST="go build -v ./..."
|
|
- TEST="./scripts/travis_checker.sh"
|
|
- TEST="./scripts/travis_node_checker.sh"
|
|
install:
|
|
- export GO111MODULE=on
|
|
- export GOPATH=$HOME/gopath
|
|
- export CGO_CPPFLAGS="-I$GOPATH/src/github.com/harmony-one/bls/include -I$GOPATH/src/github.com/harmony-one/mcl/include"
|
|
- export CGO_LDFLAGS="-L$GOPATH/src/github.com/harmony-one/bls/lib -L$GOPATH/src/github.com/harmony-one/mcl/lib"
|
|
- export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$GOPATH/src/github.com/harmony-one/bls/lib:$GOPATH/src/github.com/harmony-one/mcl/lib
|
|
- mkdir -p $HOME/gopath/src/github.com/harmony-one
|
|
- cd $HOME/gopath/src
|
|
- cd github.com/harmony-one
|
|
- git clone https://github.com/harmony-one/mcl.git
|
|
- cd mcl
|
|
- make -j4
|
|
- cd ..
|
|
- git clone https://github.com/harmony-one/bls.git
|
|
- cd bls
|
|
- make BLS_SWAP_G=1 -j4
|
|
- cd ../harmony
|
|
- go get -v ./...
|
|
- scripts/install_build_tools.sh
|
|
- chmod +x scripts/travis_checker.sh
|
|
- chmod +x scripts/travis_node_checker.sh
|
|
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
|
|
|