-
Notifications
You must be signed in to change notification settings - Fork 50
/
.travis.yml
32 lines (28 loc) · 1.4 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
language: go
go:
- 1.12
- 1.13
env:
global:
- GOSWFS_MASTER_URL="http://localhost:8888"
- GOSWFS_MEDIUM_FILE="/home/travis/gopath/src/github.com/linxGnu/goseaweedfs/seaweed.go"
- GOSWFS_SMALL_FILE="/home/travis/gopath/src/github.com/linxGnu/goseaweedfs/utils.go"
- GOSWFS_FILER_URL="http://localhost:7788"
before_script:
- go get -u github.com/mattn/goveralls
- cd $HOME
- mkdir -p /tmp/sw/master/metadata
- mkdir -p /tmp/sw/volume1/data
- mkdir -p /tmp/sw/filer
- wget https://github.com/chrislusf/seaweedfs/releases/download/1.60/linux_amd64.tar.gz && tar xzf linux_amd64.tar.gz && rm -rf linux_amd64.tar.gz
- cd $HOME
- ./weed master -defaultReplication="000" -ip="localhost" -ip.bind="0.0.0.0" -port=8888 -mdir="/tmp/sw/master/metadata" -volumePreallocate -volumeSizeLimitMB="1024" -whiteList="localhost,127.0.0.1,::1" &
- sleep 5
- ./weed volume -dataCenter="dc1" -rack="rack1" -ip="localhost" -ip.bind="0.0.0.0" -port=8899 -dir="/tmp/sw/volume1/data" -images.fix.orientation="false" -index="leveldb" -max=50 -mserver="localhost:8888" -whiteList="localhost,127.0.0.1,::1" &
- sleep 5
- ./weed filer -ip='localhost' -port=7788 -master='localhost:8888' &
- sleep 5
- ./weed mount -filer=localhost:7788 -dir=/tmp/sw/filer &
- sleep 5
- cd $HOME/gopath/src/github.com/linxGnu/goseaweedfs
script: GO111MODULE=on go test -v && $HOME/gopath/bin/goveralls -service=travis-ci