Merge pull request #376 from Windfarer/travis_new_docker_compose

upgrade ci docker compose
pull/378/head
Terry.Mao 5 years ago committed by GitHub
commit 43c746e7cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 10
      .travis.yml
  2. 4
      pkg/net/trace/sample_test.go

@ -3,6 +3,9 @@ language: go
go: go:
- 1.12.x - 1.12.x
services:
- docker
# Only clone the most recent commit. # Only clone the most recent commit.
git: git:
depth: 1 depth: 1
@ -16,6 +19,13 @@ env:
- DEPLOY_ENV=dev - DEPLOY_ENV=dev
- DISCOVERY_NODES=127.0.0.1:7171 - DISCOVERY_NODES=127.0.0.1:7171
- HTTP_PERF=tcp://0.0.0.0:0 - HTTP_PERF=tcp://0.0.0.0:0
- DOCKER_COMPOSE_VERSION=1.24.1
before_install:
- sudo rm /usr/local/bin/docker-compose
- curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > docker-compose
- chmod +x docker-compose
- sudo mv docker-compose /usr/local/bin
# Skip the install step. Don't `go get` dependencies. Only build with the code # Skip the install step. Don't `go get` dependencies. Only build with the code
# in vendor/ # in vendor/

@ -21,8 +21,8 @@ func TestProbabilitySampling(t *testing.T) {
count++ count++
} }
} }
if count < 60 || count > 120 { if count < 60 || count > 150 {
t.Errorf("expect count between 60~120 get %d", count) t.Errorf("expect count between 60~150 get %d", count)
} }
}) })
} }

Loading…
Cancel
Save