-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path.travis.yml
50 lines (44 loc) · 1.33 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
language: go
go:
- 1.8.1
- tip
os:
- linux
- osx
services:
- redis-server
- memcached
matrix:
allow_failures:
- go: tip
fast_finish: true
before_install:
# default ulimit set to 256
- ulimit -n 8192
- ulimit -a
- if [ "$TRAVIS_OS_NAME" = osx ]; then brew update; fi
- if [ "$TRAVIS_OS_NAME" = osx ]; then brew install memcached; fi
- if [ "$TRAVIS_OS_NAME" = osx ]; then /usr/local/opt/memcached/bin/memcached -l 127.0.0.1:11211 -d; fi
- if [ "$TRAVIS_OS_NAME" = osx ]; then brew install redis; fi
- if [ "$TRAVIS_OS_NAME" = osx ]; then which redis-server; fi
- if [ "$TRAVIS_OS_NAME" = osx ]; then redis-server & fi
install:
- go get -tags esiall -t ./...
- go get github.com/golang/lint/golint
- go get github.com/gordonklaus/ineffassign
- go get github.com/mholt/caddy/...
- go get github.com/vdobler/ht/...
- go get github.com/rakyll/hey
- go install github.com/rakyll/hey
script:
- diff <(echo -n) <(gofmt -s -d .)
- ineffassign .
- go vet ./...
- go test -tags esiall -race -count=4 ./...
- ./integration.sh
after_script:
- golint ./... | grep -v .pb.go
- go test -tags esiall -run=🤐 -bench=. -count=1 -benchmem ./...
- curl --trace-time -i -v http://127.0.0.1:2017/page_grpc.html
- hey -n 2240 -c 20 -t 30 http://127.0.0.1:2017/page_grpc.html
# - tail -n +1 cdy_test_*