Browse Source

Migrate project to GitLab

master
Trevor Slocum 5 years ago
parent
commit
f2a5474ad5
  1. 1
      .gitignore
  2. 24
      .gitlab-ci.yml
  3. 35
      .travis.yml
  4. 2
      Gopkg.lock
  5. 4
      README.md
  6. 2
      anonircd.go
  7. 12
      vendor/gopkg.in/sorcix/irc.v2/constants.go

1
.gitignore vendored

@ -2,7 +2,6 @@
*.iml
*.db
*.sh
AnonIRCd
anonircd
anonircd.conf
bin

24
.gitlab-ci.yml

@ -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

@ -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

2
Gopkg.lock generated

@ -17,7 +17,7 @@
branch = "v2"
name = "gopkg.in/sorcix/irc.v2"
packages = [".","internal"]
revision = "f43cef0f500f6de3fcd1e976fd87610a9e970dbc"
revision = "1b25be7f891d1bd0190ac0ef159da153c9ffa22a"
[solve-meta]
analyzer-name = "dep"

4
README.md

@ -1,7 +1,7 @@
# AnonIRCd
[![Build Status](https://travis-ci.org/tslocum/AnonIRCd.svg?branch=master)](https://travis-ci.org/tslocum/AnonIRCd)
[![GoDoc](https://godoc.org/github.com/tslocum/AnonIRCd?status.svg)](https://godoc.org/github.com/tslocum/AnonIRCd)
[![pipeline status](https://gitlab.com/tslocum/anonircd/badges/master/pipeline.svg)](https://gitlab.com/tslocum/anonircd/commits/master)
[![godoc](https://godoc.org/gitlab.com/tslocum/anonircd?status.svg)](https://godoc.org/gitlab.com/tslocum/anonircd)
AnonIRCd is an anonymous IRC daemon. All messages appear to be written by **Anonymous**.

2
anonircd.go

@ -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

12
vendor/gopkg.in/sorcix/irc.v2/constants.go generated vendored

@ -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…
Cancel
Save