dist: remove all traces of travisci
This commit is contained in:
parent
0e17b1352b
commit
7ba4b68138
7 changed files with 1 additions and 167 deletions
35
.travis.yml
35
.travis.yml
|
@ -1,35 +0,0 @@
|
||||||
language: go
|
|
||||||
go:
|
|
||||||
- 1.13.x
|
|
||||||
sudo: false
|
|
||||||
services:
|
|
||||||
- redis-server
|
|
||||||
matrix:
|
|
||||||
include:
|
|
||||||
# Using vendored dependencies
|
|
||||||
- install:
|
|
||||||
- ./dist/travis/install_reproducible.sh
|
|
||||||
script:
|
|
||||||
- ./dist/travis/check.sh
|
|
||||||
|
|
||||||
# Using HEAD of dependencies
|
|
||||||
- install:
|
|
||||||
- ./dist/travis/install_tip.sh
|
|
||||||
script:
|
|
||||||
- ./dist/travis/check.sh
|
|
||||||
|
|
||||||
allow_failures:
|
|
||||||
# Using HEAD of dependencies
|
|
||||||
- install:
|
|
||||||
- ./dist/travis/install_tip.sh
|
|
||||||
script:
|
|
||||||
- ./dist/travis/check.sh
|
|
||||||
notifications:
|
|
||||||
irc:
|
|
||||||
channels:
|
|
||||||
- irc.freenode.net#chihaya
|
|
||||||
use_notice: true
|
|
||||||
skip_join: true
|
|
||||||
on_success: always
|
|
||||||
on_failure: always
|
|
||||||
email: false
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Chihaya
|
# Chihaya
|
||||||
|
|
||||||
[](https://travis-ci.org/chihaya/chihaya)
|
[](https://github.com/chihaya/chihaya/workflows/CI/badge.svg)
|
||||||
[](https://quay.io/repository/jzelinskie/chihaya)
|
[](https://quay.io/repository/jzelinskie/chihaya)
|
||||||
[](https://goreportcard.com/report/github.com/chihaya/chihaya)
|
[](https://goreportcard.com/report/github.com/chihaya/chihaya)
|
||||||
[](https://godoc.org/github.com/chihaya/chihaya)
|
[](https://godoc.org/github.com/chihaya/chihaya)
|
||||||
|
|
22
dist/travis/check.sh
vendored
22
dist/travis/check.sh
vendored
|
@ -1,22 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
set -ex
|
|
||||||
|
|
||||||
go test -v -race $(go list ./...)
|
|
||||||
go vet $(go list ./...)
|
|
||||||
diff <(goimports -local github.com/chihaya/chihaya -d $(find . -type f -name '*.go' -not -path "./vendor/*")) <(printf "")
|
|
||||||
(for d in $(go list ./...); do diff <(golint $d) <(printf "") || exit 1; done)
|
|
||||||
go install github.com/chihaya/chihaya/cmd/chihaya
|
|
||||||
|
|
||||||
# Run e2e test with example config.
|
|
||||||
chihaya --config=./dist/travis/config_memory.yaml --debug&
|
|
||||||
pid=$!
|
|
||||||
sleep 2 # wait for Chihaya to start up (gross)
|
|
||||||
chihaya e2e --debug
|
|
||||||
kill $pid
|
|
||||||
|
|
||||||
# Run e2e test with redis.
|
|
||||||
chihaya --config=./dist/travis/config_redis.yaml --debug&
|
|
||||||
pid=$!
|
|
||||||
sleep 2 # wait for Chihaya to start up (gross)
|
|
||||||
chihaya e2e --debug
|
|
||||||
kill $pid
|
|
45
dist/travis/config_memory.yaml
vendored
45
dist/travis/config_memory.yaml
vendored
|
@ -1,45 +0,0 @@
|
||||||
# This config file is used by travis for end-to-end testing.
|
|
||||||
# See example_config.yaml for a commented, more complete configuration!
|
|
||||||
|
|
||||||
chihaya:
|
|
||||||
announce_interval: 30m
|
|
||||||
min_announce_interval: 15m
|
|
||||||
prometheus_addr: "0.0.0.0:6880"
|
|
||||||
|
|
||||||
http:
|
|
||||||
addr: "0.0.0.0:6969"
|
|
||||||
https_addr: ""
|
|
||||||
tls_cert_path: ""
|
|
||||||
tls_key_path: ""
|
|
||||||
read_timeout: 5s
|
|
||||||
write_timeout: 5s
|
|
||||||
enable_keepalive: false
|
|
||||||
idle_timeout: 30s
|
|
||||||
enable_request_timing: false
|
|
||||||
announce_routes:
|
|
||||||
- "/announce"
|
|
||||||
scrape_routes:
|
|
||||||
- "/scrape"
|
|
||||||
allow_ip_spoofing: false
|
|
||||||
real_ip_header: "x-real-ip"
|
|
||||||
max_numwant: 100
|
|
||||||
default_numwant: 50
|
|
||||||
max_scrape_infohashes: 50
|
|
||||||
|
|
||||||
udp:
|
|
||||||
addr: "0.0.0.0:6969"
|
|
||||||
max_clock_skew: 10s
|
|
||||||
private_key: "paste a random string here that will be used to hmac connection IDs"
|
|
||||||
enable_request_timing: false
|
|
||||||
allow_ip_spoofing: false
|
|
||||||
max_numwant: 100
|
|
||||||
default_numwant: 50
|
|
||||||
max_scrape_infohashes: 50
|
|
||||||
|
|
||||||
storage:
|
|
||||||
name: memory
|
|
||||||
config:
|
|
||||||
gc_interval: 3m
|
|
||||||
peer_lifetime: 31m
|
|
||||||
shard_count: 1024
|
|
||||||
prometheus_reporting_interval: 1s
|
|
48
dist/travis/config_redis.yaml
vendored
48
dist/travis/config_redis.yaml
vendored
|
@ -1,48 +0,0 @@
|
||||||
# This config file is used by travis for end-to-end testing.
|
|
||||||
# See example_config.yaml for a commented, more complete configuration!
|
|
||||||
|
|
||||||
chihaya:
|
|
||||||
announce_interval: 30m
|
|
||||||
min_announce_interval: 15m
|
|
||||||
prometheus_addr: "0.0.0.0:6880"
|
|
||||||
|
|
||||||
http:
|
|
||||||
addr: "0.0.0.0:6969"
|
|
||||||
https_addr: ""
|
|
||||||
tls_cert_path: ""
|
|
||||||
tls_key_path: ""
|
|
||||||
read_timeout: 5s
|
|
||||||
write_timeout: 5s
|
|
||||||
enable_keepalive: false
|
|
||||||
idle_timeout: 30s
|
|
||||||
enable_request_timing: false
|
|
||||||
announce_routes:
|
|
||||||
- "/announce"
|
|
||||||
scrape_routes:
|
|
||||||
- "/scrape"
|
|
||||||
allow_ip_spoofing: false
|
|
||||||
real_ip_header: "x-real-ip"
|
|
||||||
max_numwant: 100
|
|
||||||
default_numwant: 50
|
|
||||||
max_scrape_infohashes: 50
|
|
||||||
|
|
||||||
udp:
|
|
||||||
addr: "0.0.0.0:6969"
|
|
||||||
max_clock_skew: 10s
|
|
||||||
private_key: "paste a random string here that will be used to hmac connection IDs"
|
|
||||||
enable_request_timing: false
|
|
||||||
allow_ip_spoofing: false
|
|
||||||
max_numwant: 100
|
|
||||||
default_numwant: 50
|
|
||||||
max_scrape_infohashes: 50
|
|
||||||
|
|
||||||
storage:
|
|
||||||
name: redis
|
|
||||||
config:
|
|
||||||
gc_interval: 3m
|
|
||||||
peer_lifetime: 31m
|
|
||||||
prometheus_reporting_interval: 1s
|
|
||||||
redis_broker: "redis://127.0.0.1:6379/0"
|
|
||||||
redis_read_timeout: 15s
|
|
||||||
redis_write_timeout: 15s
|
|
||||||
redis_connect_timeout: 15s
|
|
8
dist/travis/install_reproducible.sh
vendored
8
dist/travis/install_reproducible.sh
vendored
|
@ -1,8 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
set -ex
|
|
||||||
|
|
||||||
# Install golint and go vet.
|
|
||||||
go get -u golang.org/x/lint/golint
|
|
||||||
go get -u golang.org/x/tools/cmd/...
|
|
||||||
|
|
||||||
go mod download
|
|
8
dist/travis/install_tip.sh
vendored
8
dist/travis/install_tip.sh
vendored
|
@ -1,8 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
set -ex
|
|
||||||
|
|
||||||
# Install golint and go vet.
|
|
||||||
go get -u golang.org/x/lint/golint
|
|
||||||
go get -u golang.org/x/tools/cmd/...
|
|
||||||
|
|
||||||
go get -t -u ./...
|
|
Loading…
Add table
Reference in a new issue