mirror of
https://github.com/hibiken/asynq.git
synced 2024-12-27 00:02:19 +08:00
Remove Travis CI files
This commit is contained in:
parent
0236eb9a1c
commit
557c1a5044
13
.travis.yml
13
.travis.yml
@ -1,13 +0,0 @@
|
|||||||
language: go
|
|
||||||
go_import_path: github.com/hibiken/asynq
|
|
||||||
git:
|
|
||||||
depth: 1
|
|
||||||
go: [1.13.x, 1.14.x, 1.15.x]
|
|
||||||
script:
|
|
||||||
- go test -race -v -coverprofile=coverage.txt -covermode=atomic ./...
|
|
||||||
- go test -run=^$ -bench=. -loglevel=debug ./...
|
|
||||||
services:
|
|
||||||
- redis-server
|
|
||||||
after_success:
|
|
||||||
- travis_wait 60 bash ./.travis/benchstat.sh
|
|
||||||
- bash <(curl -s https://codecov.io/bash)
|
|
@ -1,20 +0,0 @@
|
|||||||
if [ "${TRAVIS_PULL_REQUEST_BRANCH:-$TRAVIS_BRANCH}" != "master" ]; then
|
|
||||||
REMOTE_URL="$(git config --get remote.origin.url)";
|
|
||||||
cd ${TRAVIS_BUILD_DIR}/.. && \
|
|
||||||
git clone ${REMOTE_URL} "${TRAVIS_REPO_SLUG}-bench" && \
|
|
||||||
# turn the detached message off
|
|
||||||
git config --global advice.detachedHead false && \
|
|
||||||
cd "${TRAVIS_REPO_SLUG}-bench" && \
|
|
||||||
|
|
||||||
# Benchmark master
|
|
||||||
git checkout master && \
|
|
||||||
go test -run=^$ -bench=. -count=5 -timeout=60m -benchmem ./... > master.txt && \
|
|
||||||
|
|
||||||
# Benchmark feature branch
|
|
||||||
git checkout ${TRAVIS_COMMIT} && \
|
|
||||||
go test -run=^$ -bench=. -count=5 -timeout=60m -benchmem ./... > feature.txt && \
|
|
||||||
|
|
||||||
# compare two benchmarks
|
|
||||||
go get -u golang.org/x/perf/cmd/benchstat && \
|
|
||||||
benchstat master.txt feature.txt;
|
|
||||||
fi
|
|
Loading…
Reference in New Issue
Block a user