Migrate project to GitLab
parent
d864b6bf68
commit
f2a5474ad5
|
@ -2,7 +2,6 @@
|
|||
*.iml
|
||||
*.db
|
||||
*.sh
|
||||
AnonIRCd
|
||||
anonircd
|
||||
anonircd.conf
|
||||
bin
|
||||
|
|
|
@ -0,0 +1,24 @@
|
|||
image: golang:latest
|
||||
|
||||
stages:
|
||||
- test
|
||||
- build
|
||||
|
||||
before_script:
|
||||
- go get -u github.com/golang/dep/cmd/dep
|
||||
- export GOPATH=$(dirname $CI_PROJECT_DIR)/go
|
||||
- mkdir -p $GOPATH/src
|
||||
- cd $GOPATH/src
|
||||
- ln -s $CI_PROJECT_DIR
|
||||
- cd $CI_PROJECT_NAME
|
||||
- dep ensure -update
|
||||
|
||||
test:
|
||||
stage: test
|
||||
script:
|
||||
- go test
|
||||
|
||||
build:
|
||||
stage: build
|
||||
script:
|
||||
- go build
|
35
.travis.yml
35
.travis.yml
|
@ -1,35 +0,0 @@
|
|||
language: go
|
||||
|
||||
go:
|
||||
- 1.x
|
||||
- tip
|
||||
|
||||
install: true
|
||||
|
||||
matrix:
|
||||
allow_failures:
|
||||
- go: tip
|
||||
fast_finish: true
|
||||
|
||||
notifications:
|
||||
email: false
|
||||
|
||||
before_script:
|
||||
- GO_FILES=$(find . -iname '*.go' | grep -v /vendor/)
|
||||
- PKGS=$(go list ./... | grep -v /vendor/)
|
||||
# - go get github.com/golang/lint/golint
|
||||
# - go get honnef.co/go/tools/cmd/megacheck
|
||||
|
||||
script:
|
||||
- test -z $(gofmt -s -l $GO_FILES)
|
||||
- go test -v -race $PKGS
|
||||
- go vet $PKGS
|
||||
# - megacheck $PKGS
|
||||
# - golint -set_exit_status $PKGS
|
||||
|
||||
notifications:
|
||||
irc:
|
||||
channels:
|
||||
- "z.1chan.us#anonircd"
|
||||
on_success: change
|
||||
on_failure: always
|
|
@ -17,7 +17,7 @@
|
|||
branch = "v2"
|
||||
name = "gopkg.in/sorcix/irc.v2"
|
||||
packages = [".","internal"]
|
||||
revision = "f43cef0f500f6de3fcd1e976fd87610a9e970dbc"
|
||||
revision = "1b25be7f891d1bd0190ac0ef159da153c9ffa22a"
|
||||
|
||||
[solve-meta]
|
||||
analyzer-name = "dep"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# AnonIRCd
|
||||
|
||||
[](https://travis-ci.org/tslocum/AnonIRCd)
|
||||
[](https://godoc.org/github.com/tslocum/AnonIRCd)
|
||||
[](https://gitlab.com/tslocum/anonircd/commits/master)
|
||||
[](https://godoc.org/gitlab.com/tslocum/anonircd)
|
||||
|
||||
AnonIRCd is an anonymous IRC daemon. All messages appear to be written by **Anonymous**.
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// AnonIRCd - Anonymous IRC daemon
|
||||
// https://github.com/tslocum/AnonIRCd
|
||||
// https://gitlab.com/tslocum/anonircd
|
||||
// Written by Trevor 'tee' Slocum <tslocum@gmail.com>
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
package irc
|
||||
|
||||
// Various prefixes extracted from RFC1459.
|
||||
// Various prefixes extracted from RFC 1459.
|
||||
const (
|
||||
Channel = '#' // Normal channel
|
||||
Distributed = '&' // Distributed channel
|
||||
|
@ -16,7 +16,7 @@ const (
|
|||
Voice = '+' // User has voice +v
|
||||
)
|
||||
|
||||
// User modes as defined by RFC1459 section 4.2.3.2.
|
||||
// User modes as defined by RFC 1459 section 4.2.3.2.
|
||||
const (
|
||||
UserModeInvisible = 'i' // User is invisible
|
||||
UserModeServerNotices = 's' // User wants to receive server notices
|
||||
|
@ -24,7 +24,7 @@ const (
|
|||
UserModeOperator = 'o' // Server operator
|
||||
)
|
||||
|
||||
// Channel modes as defined by RFC1459 section 4.2.3.1
|
||||
// Channel modes as defined by RFC 1459 section 4.2.3.1
|
||||
const (
|
||||
ModeOperator = 'o' // Operator privileges
|
||||
ModeVoice = 'v' // Ability to speak on a moderated channel
|
||||
|
@ -41,7 +41,7 @@ const (
|
|||
ModeHalfOperator = 'h' // Half-operator privileges (non-standard)
|
||||
)
|
||||
|
||||
// IRC commands extracted from RFC2812 section 3 and RFC2813 section 4.
|
||||
// IRC commands extracted from RFC 2812 section 3 and RFC 2813 section 4.
|
||||
const (
|
||||
PASS = "PASS"
|
||||
NICK = "NICK"
|
||||
|
@ -92,7 +92,7 @@ const (
|
|||
NJOIN = "NJOIN"
|
||||
)
|
||||
|
||||
// Numeric IRC replies extracted from RFC2812 section 5.
|
||||
// Numeric IRC replies extracted from RFC 2812 section 5.
|
||||
const (
|
||||
RPL_WELCOME = "001"
|
||||
RPL_YOURHOST = "002"
|
||||
|
@ -261,7 +261,7 @@ const (
|
|||
RPL_SASLMECHS = "908"
|
||||
)
|
||||
|
||||
// RFC2812, section 5.3
|
||||
// RFC 2812 section 5.3
|
||||
const (
|
||||
RPL_STATSCLINE = "213"
|
||||
RPL_STATSNLINE = "214"
|
||||
|
|
Loading…
Reference in New Issue