Skip to content

Commit

Permalink
Enable Travis CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Haeusler committed Feb 24, 2019
1 parent 2ce7b55 commit 1168d7b
Show file tree
Hide file tree
Showing 5 changed files with 52 additions and 1 deletion.
20 changes: 20 additions & 0 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
version: "2"

plugins:
gofmt:
enabled: true
golint:
enabled: true
govet:
enabled: true
fixme:
enabled: true

exclude_patterns:
- "**/*.golden"
- "**/*.interp"
- "**/*.pb.go"
- "**/*.tokens"
- "**/path*_listener.go"
- "**/path_lexer.go"
- "**/path_parser.go"
25 changes: 25 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
language: go

go:
- "1.11"

branches:
only:
- master

env:
- GO111MODULE=on

before_script:
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build

install:
- make deps

script:
- make test

after_script:
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ deps:
test: $(cover_file)

$(cover_file): $(wildcard **/*_test.go)
go test -coverpkg=./... -covermode=atomic -coverprofile=$@ ./...
go test -covermode=atomic -coverprofile=$@ ./...

.PHONY: build
build: $(binary_name)
Expand Down
4 changes: 4 additions & 0 deletions README.adoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
= Bilocation: a tool for managing files using tags instead of folders

image:https://travis-ci.org/corvus-ch/bilocation.svg?branch=master["Build Status", link="https://travis-ci.org/corvus-ch/bilocation"]
image:https://api.codeclimate.com/v1/badges/31917c2baffbbfa739c3/maintainability["Maintainability", link="https://codeclimate.com/github/corvus-ch/bilocation/maintainability"]
image:https://api.codeclimate.com/v1/badges/31917c2baffbbfa739c3/test_coverage["Test Coverage", link="https://codeclimate.com/github/corvus-ch/bilocation/test_coverage"]

This file should go into location _A_. But wait, it also belongs to location
_B_. If you face this issue regularly while managing your files, `bilocation`
is for you.
Expand Down
2 changes: 2 additions & 0 deletions tag/tag_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build integration

package tag_test

import (
Expand Down

0 comments on commit 1168d7b

Please sign in to comment.