Skip to content

Commit

Permalink
Merge pull request #47 from digineo/circleci
Browse files Browse the repository at this point in the history
Add Circle CI
  • Loading branch information
denzs committed Oct 8, 2018
2 parents ce1e2b6 + 2b4d071 commit e0a261c
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .circleci/config.yml
@@ -0,0 +1,19 @@
# Golang CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-go/ for more details
version: 2
jobs:
build:
docker:
# specify the version
- image: circleci/golang:1.10

working_directory: /go/src/github.com/gonicus/gofaxip
steps:
- checkout

# specify any bash command here prefixed with `run: `
- run: go get -v -t -d ./...
- run: go test -v ./...
- run: go install github.com/gonicus/gofaxip/gofaxsend
- run: go install github.com/gonicus/gofaxip/gofaxd
2 changes: 2 additions & 0 deletions README.md
@@ -1,5 +1,7 @@
# GOfax.IP

[![CircleCI](https://circleci.com/gh/gonicus/gofaxip/tree/master.svg?style=shield)](https://circleci.com/gh/gonicus/gofaxip/tree/master)

GOfax.IP is a HylaFAX backend/connector providing Fax over IP support for HylaFAX using FreeSWITCH and SpanDSP through FreeSWITCH's mod_spandsp.

In contrast to solutions like t38modem, iaxmodem and mod_spandsp's softmodem feature, GOfax.IP does not emulate fax modem devices but replaces HylaFAX's `faxgetty` and `faxsend` processes to communicate directly with FreeSWITCH using FreeSWITCH's Event Socket interface.
Expand Down
8 changes: 8 additions & 0 deletions gofaxlib/logger/logger.go
Expand Up @@ -20,6 +20,7 @@ package logger
import (
"log"
"log/syslog"
"os"
)

const (
Expand All @@ -34,6 +35,13 @@ var (
func init() {
var err error
log.SetFlags(LOG_FLAGS)

if os.Getenv("CI") != "" {
// Running in Circle CI
Logger = log.New(os.Stderr, "", LOG_FLAGS)
return
}

Logger, err = syslog.NewLogger(LOG_PRIORITY, LOG_FLAGS)
if err != nil {
log.Fatal(err)
Expand Down

0 comments on commit e0a261c

Please sign in to comment.