mirror of
https://github.com/go-kratos/kratos.git
synced 2025-01-26 03:52:12 +02:00
Merge pull request #376 from Windfarer/travis_new_docker_compose
upgrade ci docker compose
This commit is contained in:
commit
43c746e7cf
10
.travis.yml
10
.travis.yml
@ -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…
x
Reference in New Issue
Block a user