-
Notifications
You must be signed in to change notification settings - Fork 119
/
.travis.yml
33 lines (33 loc) · 1.29 KB
/
.travis.yml
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
dist: trusty
language: go
go:
- 1.8
sudo: required
go_import_path: github.com/mit-dci/lit
cache:
directories:
- bitcoin-0.15.0
- litecoin-0.14.2
before_install:
- go get github.com/mattn/goveralls
install:
- sudo apt-get update
- sudo apt-get install python3 python3-pip build-essential libgtk-3-dev
# Download bitcoind and add it to the path
- ls bitcoin-0.15.0/bin/bitcoind || (wget https://bitcoincore.org/bin/bitcoin-core-0.15.0/bitcoin-0.15.0-x86_64-linux-gnu.tar.gz && tar xvf bitcoin-0.15.0-x86_64-linux-gnu.tar.gz)
- PATH=$PATH:$PWD/bitcoin-0.15.0/bin
# Download litecoind and add it to the path
- ls litecoin-0.14.2/bin/litecoind || (wget https://download.litecoin.org/litecoin-0.14.2/linux/litecoin-0.14.2-x86_64-linux-gnu.tar.gz && tar xvf litecoin-0.14.2-x86_64-linux-gnu.tar.gz)
- PATH=$PATH:$PWD/litecoin-0.14.2/bin
- sudo pip3 install --upgrade pip
- sudo pip3 install requests
- sudo pip3 install websocket-client
script:
- go get -v ./...
- go test ./...
- go build
- test/test_basic.py -c reg --dumplogs
- # test/test_basic.py -c ltr --dumplogs # litecoin currently broken. Disable test
- test/test_break.py -c reg --dumplogs
- $GOPATH/bin/goveralls -service=travis-ci
- # test/test_break.py -c ltr --dumplogs # litecoin currently broken. Disable test