forked from PlatONnetwork/PlatON-Go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
70 lines (66 loc) · 2.06 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
language: go
go_import_path: github.com/PlatONnetwork/PlatON-Go
# sudo: false
matrix:
include:
# This builder compile PlatON at Ubuntu xenial
- name: ubuntu compile
os: linux
dist: xenial
sudo: required
go: 1.12.x
script:
- chmod u+x ./build/*.sh
- make all
# This builder compile PlatON at Windows server 2016
# - name: windows compile
# os: windows
# go: 1.12.x
# script:
# - chmod u+x ./build/*.sh
# - sh ./build/build_deps.sh
# - go run build/ci.go install
# This builder run the code scans uses gometalinter
- name: code scan
os: linux
dist: xenial
sudo: required
go: 1.12.x
script:
- go get -v -u github.com/alecthomas/gometalinter
- gometalinter --install --update
- gometalinter --vendor --tests --deadline=10m --disable-all --enable=vet --enable=misspell --enable=goconst --min-occurrences=6 ./...
# This builder run the unit tests
- name: unit test
os: linux
dist: xenial
sudo: required
go: 1.12.x
script:
- sh ./build/build_deps.sh
- go test -tags=test `go list ./... | grep -v swarm|grep -v tests|grep -v bn256`
# This builder run the auto tests
- if: type = push
name: auto test
os: linux
dist: xenial
sudo: required
go: 1.12.x
before_install:
- pyenv install -f 3.6.0
- pyenv rehash
- pyenv global 3.6.0
- python --version
- pip --version
install:
- chmod u+x ./build/*.sh
- make all
script:
- WORKSPACE=$(pwd)
- git clone https://github.com/PlatONnetwork/PlatON-Tests.git
- cd ${WORKSPACE}/PlatON-Tests/deploy/node/
- unzip -P ${UNZIP_CODE} travis_node.zip
- cd ${WORKSPACE}/PlatON-Tests/
- pip install --user -r requirements.txt
- cp -f ${WORKSPACE}/build/bin/platon ${WORKSPACE}/PlatON-Tests/deploy/rely/bin/
- python run.py --node ./deploy/node/travis_node.yml --module blockchain,transaction